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

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

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Add a warning in clipboard.idl about the future deprecation plan. Created 4 years 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 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 23
24 namespace content { 24 namespace content {
25 class BrowserContext; 25 class BrowserContext;
26 } 26 }
27 27
28 namespace extensions { 28 namespace extensions {
29 29
30 class ChromeComponentExtensionResourceManager; 30 class ChromeComponentExtensionResourceManager;
31 class ChromeExtensionsAPIClient; 31 class ChromeExtensionsAPIClient;
32 class ChromeProcessManagerDelegate; 32 class ChromeProcessManagerDelegate;
33 class ClipboardExtensionHelper;
33 34
34 // Implementation of BrowserClient for Chrome, which includes 35 // Implementation of BrowserClient for Chrome, which includes
35 // knowledge of Profiles, BrowserContexts and incognito. 36 // knowledge of Profiles, BrowserContexts and incognito.
36 // 37 //
37 // NOTE: Methods that do not require knowledge of browser concepts should be 38 // NOTE: Methods that do not require knowledge of browser concepts should be
38 // implemented in ChromeExtensionsClient even if they are only used in the 39 // implemented in ChromeExtensionsClient even if they are only used in the
39 // browser process (see chrome/common/extensions/chrome_extensions_client.h). 40 // browser process (see chrome/common/extensions/chrome_extensions_client.h).
40 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient { 41 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient {
41 public: 42 public:
42 ChromeExtensionsBrowserClient(); 43 ChromeExtensionsBrowserClient();
43 ~ChromeExtensionsBrowserClient() override; 44 ~ChromeExtensionsBrowserClient() override;
44 45
45 // ExtensionsBrowserClient overrides: 46 // ExtensionsBrowserClient overrides:
46 bool IsShuttingDown() override; 47 bool IsShuttingDown() override;
47 bool AreExtensionsDisabled(const base::CommandLine& command_line, 48 bool AreExtensionsDisabled(const base::CommandLine& command_line,
48 content::BrowserContext* context) override; 49 content::BrowserContext* context) override;
49 bool IsValidContext(content::BrowserContext* context) override; 50 bool IsValidContext(content::BrowserContext* context) override;
50 bool IsSameContext(content::BrowserContext* first, 51 bool IsSameContext(content::BrowserContext* first,
51 content::BrowserContext* second) override; 52 content::BrowserContext* second) override;
52 bool HasOffTheRecordContext(content::BrowserContext* context) override; 53 bool HasOffTheRecordContext(content::BrowserContext* context) override;
53 content::BrowserContext* GetOffTheRecordContext( 54 content::BrowserContext* GetOffTheRecordContext(
54 content::BrowserContext* context) override; 55 content::BrowserContext* context) override;
55 content::BrowserContext* GetOriginalContext( 56 content::BrowserContext* GetOriginalContext(
56 content::BrowserContext* context) override; 57 content::BrowserContext* context) override;
57 #if defined(OS_CHROMEOS) 58 #if defined(OS_CHROMEOS)
58 std::string GetUserIdHashFromContext( 59 std::string GetUserIdHashFromContext(
59 content::BrowserContext* context) override; 60 content::BrowserContext* context) override;
61 void SaveImageDataToClipboard(const std::vector<char>& image_data,
Devlin 2016/12/16 02:26:16 If you're convinced we can't implement this in //e
jennyz 2016/12/19 07:01:36 Done.
62 api::clipboard::ImageType type,
63 const base::Closure& success_callback,
64 const ErrorCallback& error_callback) override;
60 #endif 65 #endif
61 bool IsGuestSession(content::BrowserContext* context) const override; 66 bool IsGuestSession(content::BrowserContext* context) const override;
62 bool IsExtensionIncognitoEnabled( 67 bool IsExtensionIncognitoEnabled(
63 const std::string& extension_id, 68 const std::string& extension_id,
64 content::BrowserContext* context) const override; 69 content::BrowserContext* context) const override;
65 bool CanExtensionCrossIncognito( 70 bool CanExtensionCrossIncognito(
66 const Extension* extension, 71 const Extension* extension,
67 content::BrowserContext* context) const override; 72 content::BrowserContext* context) const override;
68 net::URLRequestJob* MaybeCreateResourceBundleRequestJob( 73 net::URLRequestJob* MaybeCreateResourceBundleRequestJob(
69 net::URLRequest* request, 74 net::URLRequest* request,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Support for ProcessManager. 136 // Support for ProcessManager.
132 std::unique_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; 137 std::unique_ptr<ChromeProcessManagerDelegate> process_manager_delegate_;
133 138
134 // Client for API implementations. 139 // Client for API implementations.
135 std::unique_ptr<ChromeExtensionsAPIClient> api_client_; 140 std::unique_ptr<ChromeExtensionsAPIClient> api_client_;
136 141
137 std::unique_ptr<ChromeComponentExtensionResourceManager> resource_manager_; 142 std::unique_ptr<ChromeComponentExtensionResourceManager> resource_manager_;
138 143
139 std::unique_ptr<ExtensionCache> extension_cache_; 144 std::unique_ptr<ExtensionCache> extension_cache_;
140 145
146 #if defined(OS_CHROMEOS)
147 std::unique_ptr<ClipboardExtensionHelper> clipboard_extension_helper_;
148 #endif
149
141 std::unique_ptr<KioskDelegate> kiosk_delegate_; 150 std::unique_ptr<KioskDelegate> kiosk_delegate_;
142 151
143 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); 152 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
144 }; 153 };
145 154
146 } // namespace extensions 155 } // namespace extensions
147 156
148 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 157 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698