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

Side by Side Diff: chrome/browser/extensions/chrome_extensions_browser_client.h

Issue 264743014: Move chrome.runtime to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: prevent runtime impl from handling invalid update versions Created 6 years, 7 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 | Annotate | Revision Log
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 CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() 80 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate()
81 OVERRIDE; 81 OVERRIDE;
82 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; 82 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE;
83 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; 83 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE;
84 virtual bool IsRunningInForcedAppMode() OVERRIDE; 84 virtual bool IsRunningInForcedAppMode() OVERRIDE;
85 virtual ApiActivityMonitor* GetApiActivityMonitor( 85 virtual ApiActivityMonitor* GetApiActivityMonitor(
86 content::BrowserContext* context) OVERRIDE; 86 content::BrowserContext* context) OVERRIDE;
87 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; 87 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE;
88 virtual void RegisterExtensionFunctions( 88 virtual void RegisterExtensionFunctions(
89 ExtensionFunctionRegistry* registry) const OVERRIDE; 89 ExtensionFunctionRegistry* registry) const OVERRIDE;
90 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate(
91 content::BrowserContext* context) const OVERRIDE;
90 92
91 private: 93 private:
92 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; 94 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>;
93 95
94 // Observer for Chrome-specific notifications. 96 // Observer for Chrome-specific notifications.
95 ChromeNotificationObserver notification_observer_; 97 ChromeNotificationObserver notification_observer_;
96 98
97 #if defined(ENABLE_EXTENSIONS) 99 #if defined(ENABLE_EXTENSIONS)
98 // Client for API implementations. 100 // Client for API implementations.
99 scoped_ptr<ChromeExtensionsAPIClient> api_client_; 101 scoped_ptr<ChromeExtensionsAPIClient> api_client_;
100 #endif 102 #endif
101 103
102 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); 104 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
103 }; 105 };
104 106
105 } // namespace extensions 107 } // namespace extensions
106 108
107 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 109 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698