Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: extensions/browser/extensions_browser_client.h

Issue 1236493004: Final batch adding real histogram values for extension events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android compile Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "extensions/browser/extension_event_histogram_value.h"
12 #include "extensions/browser/extension_prefs_observer.h" 13 #include "extensions/browser/extension_prefs_observer.h"
13 14
14 class ExtensionFunctionRegistry; 15 class ExtensionFunctionRegistry;
15 class PrefService; 16 class PrefService;
16 17
17 namespace base { 18 namespace base {
18 class CommandLine; 19 class CommandLine;
19 class FilePath; 20 class FilePath;
20 class ListValue; 21 class ListValue;
21 } 22 }
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( 190 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate(
190 content::BrowserContext* context) const = 0; 191 content::BrowserContext* context) const = 0;
191 192
192 // Returns the manager of resource bundles used in extensions. Returns NULL if 193 // Returns the manager of resource bundles used in extensions. Returns NULL if
193 // the manager doesn't exist. 194 // the manager doesn't exist.
194 virtual const ComponentExtensionResourceManager* 195 virtual const ComponentExtensionResourceManager*
195 GetComponentExtensionResourceManager() = 0; 196 GetComponentExtensionResourceManager() = 0;
196 197
197 // Propagate a event to all the renderers in every browser context. The 198 // Propagate a event to all the renderers in every browser context. The
198 // implementation must be safe to call from any thread. 199 // implementation must be safe to call from any thread.
199 virtual void BroadcastEventToRenderers(const std::string& event_name, 200 virtual void BroadcastEventToRenderers(events::HistogramValue histogram_value,
201 const std::string& event_name,
200 scoped_ptr<base::ListValue> args) = 0; 202 scoped_ptr<base::ListValue> args) = 0;
201 203
202 // Returns the embedder's net::NetLog. 204 // Returns the embedder's net::NetLog.
203 virtual net::NetLog* GetNetLog() = 0; 205 virtual net::NetLog* GetNetLog() = 0;
204 206
205 // Gets the single ExtensionCache instance shared across the browser process. 207 // Gets the single ExtensionCache instance shared across the browser process.
206 virtual ExtensionCache* GetExtensionCache() = 0; 208 virtual ExtensionCache* GetExtensionCache() = 0;
207 209
208 // Indicates whether extension update checks should be allowed. 210 // Indicates whether extension update checks should be allowed.
209 virtual bool IsBackgroundUpdateAllowed() = 0; 211 virtual bool IsBackgroundUpdateAllowed() = 0;
(...skipping 19 matching lines...) Expand all
229 // Returns the single instance of |this|. 231 // Returns the single instance of |this|.
230 static ExtensionsBrowserClient* Get(); 232 static ExtensionsBrowserClient* Get();
231 233
232 // Initialize the single instance. 234 // Initialize the single instance.
233 static void Set(ExtensionsBrowserClient* client); 235 static void Set(ExtensionsBrowserClient* client);
234 }; 236 };
235 237
236 } // namespace extensions 238 } // namespace extensions
237 239
238 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 240 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_event_histogram_value.h ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698