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

Side by Side Diff: chrome/browser/extensions/api/runtime/runtime_api.h

Issue 52983004: Convert ExtensionProcessManager to BrowserContext, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/chrome_extension_function.h" 10 #include "chrome/browser/extensions/chrome_extension_function.h"
11 #include "chrome/common/extensions/api/runtime.h" 11 #include "chrome/common/extensions/api/runtime.h"
12 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
13 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
14 14
15 class Profile; 15 class Profile;
16 16
17 namespace base { 17 namespace base {
18 class Version; 18 class Version;
19 } 19 }
20 20
21 namespace content {
22 class BrowserContext;
23 }
24
21 namespace extensions { 25 namespace extensions {
22 class Extension; 26 class Extension;
23 class ExtensionHost; 27 class ExtensionHost;
24 28
25 class RuntimeEventRouter { 29 class RuntimeEventRouter {
26 public: 30 public:
27 // Dispatches the onStartup event to all currently-loaded extensions. 31 // Dispatches the onStartup event to all currently-loaded extensions.
28 static void DispatchOnStartupEvent(Profile* profile, 32 static void DispatchOnStartupEvent(content::BrowserContext* context,
29 const std::string& extension_id); 33 const std::string& extension_id);
30 34
31 // Dispatches the onInstalled event to the given extension. 35 // Dispatches the onInstalled event to the given extension.
32 static void DispatchOnInstalledEvent(Profile* profile, 36 static void DispatchOnInstalledEvent(Profile* profile,
33 const std::string& extension_id, 37 const std::string& extension_id,
34 const base::Version& old_version, 38 const base::Version& old_version,
35 bool chrome_updated); 39 bool chrome_updated);
36 40
37 // Dispatches the onUpdateAvailable event to the given extension. 41 // Dispatches the onUpdateAvailable event to the given extension.
38 static void DispatchOnUpdateAvailableEvent( 42 static void DispatchOnUpdateAvailableEvent(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 RUNTIME_GETPACKAGEDIRECTORYENTRY) 138 RUNTIME_GETPACKAGEDIRECTORYENTRY)
135 139
136 protected: 140 protected:
137 virtual ~RuntimeGetPackageDirectoryEntryFunction() {} 141 virtual ~RuntimeGetPackageDirectoryEntryFunction() {}
138 virtual bool RunImpl() OVERRIDE; 142 virtual bool RunImpl() OVERRIDE;
139 }; 143 };
140 144
141 } // namespace extensions 145 } // namespace extensions
142 146
143 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ 147 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_browsertest_util.cc ('k') | chrome/browser/extensions/api/runtime/runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698