0
Commit Graph

7 Commits

Author SHA1 Message Date
Mario Sanchez Prada
59d4fc10b2 Migrate references of content::mojom::ChildHistogramFetcher* to new Mojo types
Convert both the implementation and clients in the browser and child
process for the content.mojom.ChildHistogramFetcherFactory and the
content.mojo.ChildHistogramFetcher interfaces to the new Mojo types.

Bug: 955171
Change-Id: I3e45219b9c027eb861507f7db9f0cac128eef5bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1798357
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
Cr-Commit-Position: refs/heads/master@{#695955}
2019-09-12 07:41:33 +00:00
Alex Ilin
30e7d06cc9 metrics: Convert metrics allocators to the new shared memory API
This is a refactoring CL that switches all usages of obsolete
base::SharedMemory and base::SharedMemoryHandle classes in metrics allocators
to the new shared memory API.

No behavioral change is expected.

The browser process creates one shared memory allocator per child process. The
shared memory is writable both in the parent and the child processes. Thus, the
base::WritableSharedMemoryRegion class is used.

Bug: 920183
Change-Id: I31df2ca2eefb606b053e255cf06a91a0d3e1038c
Reviewed-on: https://chromium-review.googlesource.com/c/1477121
Commit-Queue: Alex Ilin <alexilin@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Brian White <bcwhite@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634158}
2019-02-21 12:24:53 +00:00
Nicholas Verne
91bf4a63f6 mojo-ify child histogram messages.
We replace ChildHistogramMessageFilter with ChildHistogramImpl
for the child process side of the connections.

HistogramController owns sets of interface pointers to the various child process
host types. Its singleton is allowed to leak because it should only die when its
process is being killed.

Bug: 577685
Change-Id: I230ce331c2491047f06654fef1e7c0586b4c47c1
Reviewed-on: https://chromium-review.googlesource.com/664158
Reviewed-by: Dimitri Glazkov <dglazkov@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Commit-Queue: Nicholas Verne <nverne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#508468}
2017-10-12 21:14:24 +00:00
avi
b7348940d3 Switch to standard integer types in content/browser/.
BUG=138542
TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/1549113002

Cr-Commit-Position: refs/heads/master@{#366868}
2015-12-25 20:58:00 +00:00
olli.raula
36aa8be4eb Move Singleton and related structs to namespace base
Public APIs from base should live inside base:: so moved Singleton class
and structs to base{} and fixed consumers.

also fixed:

** Presubmit ERRORS **
Found Singleton<T> in the following header files.
Please move them to an appropriate source file so that the template
gets instantiated in a single compilation unit.
  chrome/browser/plugins/plugin_finder.h \
  chromecast/media/base/media_message_loop.h \
  content/browser/media/android/media_drm_credential_manager.h

Presubmit warnings:
src/chrome/browser/extensions/warning_badge_service_factory.h:5:
  #ifndef header guard has wrong style, please use:
  CHROME_BROWSER_EXTENSIONS_WARNING_BADGE_SERVICE_FACTORY_H_
  [build/header_guard] [5]
src/chrome/browser/extensions/warning_badge_service_factory.h:39:
  #endif line should be "#endif  //
  CHROME_BROWSER_EXTENSIONS_WARNING_BADGE_SERVICE_FACTORY_H_"
  [build/header_guard] [5]

TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/1308823002

Cr-Commit-Position: refs/heads/master@{#348136}
2015-09-10 11:15:10 +00:00
rtenneti@google.com
dfdb6a95f4 Enable collecting histograms from Plugins and GPU processes
only. Will enable other process types after testing them.

R=jar,jam@chromium.org,sky
BUG=145294
  
Review URL: https://chromiumcodereview.appspot.com/10885016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154501 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-31 21:08:05 +00:00
rtenneti@google.com
83ab4a2858 Histograms - Support histograms for Plugins, GPU
and all child processes. Renderer processes also
use this new method to send histograms to browser.
This code is similar to the code that gets profiler
data from all processes.

R=jar@chromium.org,jam@chromium.org
TEST=browser unit tests, interactive UI tests
BUG=114013
Review URL: https://chromiumcodereview.appspot.com/10454086

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146394 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-12 18:19:45 +00:00