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

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

Issue 11308012: Remove some TabContentses from extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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_TABS_TABS_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__
6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_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 "content/public/browser/notification_observer.h" 13 #include "content/public/browser/notification_observer.h"
14 #include "content/public/browser/notification_registrar.h" 14 #include "content/public/browser/notification_registrar.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 16
17 class BackingStore; 17 class BackingStore;
18 class GURL; 18 class GURL;
19 class PrefService; 19 class PrefService;
20 class SkBitmap; 20 class SkBitmap;
21 class TabContents;
22 21
23 namespace base { 22 namespace base {
24 class DictionaryValue; 23 class DictionaryValue;
25 } 24 }
26 25
27 namespace content { 26 namespace content {
28 class WebContents; 27 class WebContents;
29 } 28 }
30 29
31 namespace skia { 30 namespace skia {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 public: 122 public:
124 UpdateTabFunction(); 123 UpdateTabFunction();
125 124
126 protected: 125 protected:
127 virtual ~UpdateTabFunction() {} 126 virtual ~UpdateTabFunction() {}
128 virtual bool UpdateURLIfPresent(base::DictionaryValue* update_props, 127 virtual bool UpdateURLIfPresent(base::DictionaryValue* update_props,
129 int tab_id, 128 int tab_id,
130 bool* is_async); 129 bool* is_async);
131 virtual void PopulateResult(); 130 virtual void PopulateResult();
132 131
133 TabContents* tab_contents_; 132 content::WebContents* web_contents_;
134 133
135 private: 134 private:
136 virtual bool RunImpl() OVERRIDE; 135 virtual bool RunImpl() OVERRIDE;
137 void OnExecuteCodeFinished(const std::string& error, 136 void OnExecuteCodeFinished(const std::string& error,
138 int32 on_page_id, 137 int32 on_page_id,
139 const GURL& on_url, 138 const GURL& on_url,
140 const ListValue& script_result); 139 const ListValue& script_result);
141 140
142 DECLARE_EXTENSION_FUNCTION_NAME("tabs.update") 141 DECLARE_EXTENSION_FUNCTION_NAME("tabs.update")
143 }; 142 };
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). 199 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl().
201 ImageFormat image_format_; 200 ImageFormat image_format_;
202 201
203 // Quality setting to use when encoding jpegs. Set in RunImpl(). 202 // Quality setting to use when encoding jpegs. Set in RunImpl().
204 int image_quality_; 203 int image_quality_;
205 204
206 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") 205 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab")
207 }; 206 };
208 207
209 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ 208 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/execute_code_in_tab_function.cc ('k') | chrome/browser/extensions/api/tabs/tabs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698