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

Side by Side Diff: extensions/browser/api/extensions_api_client.h

Issue 2837983002: Modify SetImageData to add additional items along with image data to save on clipboard. (Closed)
Patch Set: Nits and rebase. Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_API_EXTENSIONS_API_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "extensions/browser/api/clipboard/clipboard_api.h"
12 #include "extensions/browser/api/declarative_content/content_rules_registry.h" 13 #include "extensions/browser/api/declarative_content/content_rules_registry.h"
13 #include "extensions/browser/api/storage/settings_namespace.h" 14 #include "extensions/browser/api/storage/settings_namespace.h"
14 #include "extensions/common/api/clipboard.h" 15 #include "extensions/common/api/clipboard.h"
15 16
16 namespace base { 17 namespace base {
17 template <class T> 18 template <class T>
18 class ObserverListThreadSafe; 19 class ObserverListThreadSafe;
19 } 20 }
20 21
21 namespace content { 22 namespace content {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 139
139 #if defined(OS_CHROMEOS) 140 #if defined(OS_CHROMEOS)
140 // If supported by the embedder, returns a delegate for querying non-native 141 // If supported by the embedder, returns a delegate for querying non-native
141 // file systems. 142 // file systems.
142 virtual NonNativeFileSystemDelegate* GetNonNativeFileSystemDelegate(); 143 virtual NonNativeFileSystemDelegate* GetNonNativeFileSystemDelegate();
143 144
144 // Saves image data on clipboard. 145 // Saves image data on clipboard.
145 virtual void SaveImageDataToClipboard( 146 virtual void SaveImageDataToClipboard(
146 const std::vector<char>& image_data, 147 const std::vector<char>& image_data,
147 api::clipboard::ImageType type, 148 api::clipboard::ImageType type,
149 AdditionalDataItemList additional_items,
148 const base::Closure& success_callback, 150 const base::Closure& success_callback,
149 const base::Callback<void(const std::string&)>& error_callback); 151 const base::Callback<void(const std::string&)>& error_callback);
150 #endif 152 #endif
151 153
152 // NOTE: If this interface gains too many methods (perhaps more than 20) it 154 // NOTE: If this interface gains too many methods (perhaps more than 20) it
153 // should be split into one interface per API. 155 // should be split into one interface per API.
154 }; 156 };
155 157
156 } // namespace extensions 158 } // namespace extensions
157 159
158 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 160 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/clipboard/clipboard_api.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698