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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_api.h

Issue 12578008: Move CrxFile, FileReader, ExtensionResource to src/extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 (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_TABS_TABS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/extensions/extension_function.h" 12 #include "chrome/browser/extensions/extension_function.h"
13 #include "chrome/common/extensions/extension_resource.h"
14 #include "chrome/common/extensions/user_script.h" 13 #include "chrome/common/extensions/user_script.h"
15 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "extensions/common/extension_resource.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 18
19 class BackingStore; 19 class BackingStore;
20 class GURL; 20 class GURL;
21 class PrefRegistrySyncable; 21 class PrefRegistrySyncable;
22 class SkBitmap; 22 class SkBitmap;
23 23
24 namespace base { 24 namespace base {
25 class DictionaryValue; 25 class DictionaryValue;
26 } 26 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 bool Execute(const std::string& code_string); 254 bool Execute(const std::string& code_string);
255 255
256 // Id of tab which executes code. 256 // Id of tab which executes code.
257 int execute_tab_id_; 257 int execute_tab_id_;
258 258
259 // The injection details. 259 // The injection details.
260 scoped_ptr<extensions::api::tabs::InjectDetails> details_; 260 scoped_ptr<extensions::api::tabs::InjectDetails> details_;
261 261
262 // Contains extension resource built from path of file which is 262 // Contains extension resource built from path of file which is
263 // specified in JSON arguments. 263 // specified in JSON arguments.
264 ExtensionResource resource_; 264 extensions::ExtensionResource resource_;
265 }; 265 };
266 266
267 class TabsExecuteScriptFunction : public ExecuteCodeInTabFunction { 267 class TabsExecuteScriptFunction : public ExecuteCodeInTabFunction {
268 private: 268 private:
269 virtual ~TabsExecuteScriptFunction() {} 269 virtual ~TabsExecuteScriptFunction() {}
270 270
271 virtual void OnExecuteCodeFinished(const std::string& error, 271 virtual void OnExecuteCodeFinished(const std::string& error,
272 int32 on_page_id, 272 int32 on_page_id,
273 const GURL& on_url, 273 const GURL& on_url,
274 const ListValue& script_result) OVERRIDE; 274 const ListValue& script_result) OVERRIDE;
275 275
276 DECLARE_EXTENSION_FUNCTION("tabs.executeScript", TABS_EXECUTESCRIPT) 276 DECLARE_EXTENSION_FUNCTION("tabs.executeScript", TABS_EXECUTESCRIPT)
277 }; 277 };
278 278
279 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction { 279 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction {
280 private: 280 private:
281 virtual ~TabsInsertCSSFunction() {} 281 virtual ~TabsInsertCSSFunction() {}
282 282
283 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS) 283 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS)
284 }; 284 };
285 285
286 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ 286 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698