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

Side by Side Diff: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.h

Issue 10912156: Move SessionID, CaptureVisibleTabFunction to WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase atop the extension tab helper change Created 8 years, 3 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_OFFSCREEN_TABS_OFFSCREEN_TABS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 public: 144 public:
145 // TODO(jstritar): Rename to toDataUrl. 145 // TODO(jstritar): Rename to toDataUrl.
146 DECLARE_EXTENSION_FUNCTION_NAME("experimental.offscreenTabs.toDataUrl") 146 DECLARE_EXTENSION_FUNCTION_NAME("experimental.offscreenTabs.toDataUrl")
147 147
148 ToDataUrlOffscreenTabFunction(); 148 ToDataUrlOffscreenTabFunction();
149 149
150 protected: 150 protected:
151 virtual ~ToDataUrlOffscreenTabFunction(); 151 virtual ~ToDataUrlOffscreenTabFunction();
152 152
153 // CaptureVisibleTabFunction: 153 // CaptureVisibleTabFunction:
154 virtual bool GetTabToCapture(content::WebContents** web_contents, 154 virtual bool GetTabToCapture(content::WebContents** web_contents) OVERRIDE;
155 TabContents** tab_contents) OVERRIDE;
156 155
157 private: 156 private:
158 DISALLOW_COPY_AND_ASSIGN(ToDataUrlOffscreenTabFunction); 157 DISALLOW_COPY_AND_ASSIGN(ToDataUrlOffscreenTabFunction);
159 }; 158 };
160 159
161 // Updates an offscreen tab. 160 // Updates an offscreen tab.
162 class UpdateOffscreenTabFunction : public UpdateTabFunction { 161 class UpdateOffscreenTabFunction : public UpdateTabFunction {
163 public: 162 public:
164 DECLARE_EXTENSION_FUNCTION_NAME("experimental.offscreenTabs.update") 163 DECLARE_EXTENSION_FUNCTION_NAME("experimental.offscreenTabs.update")
165 164
166 UpdateOffscreenTabFunction(); 165 UpdateOffscreenTabFunction();
167 166
168 protected: 167 protected:
169 virtual ~UpdateOffscreenTabFunction(); 168 virtual ~UpdateOffscreenTabFunction();
170 169
171 // ExtensionFunction: 170 // ExtensionFunction:
172 virtual bool RunImpl() OVERRIDE; 171 virtual bool RunImpl() OVERRIDE;
173 172
174 // UpdateTabFunction: 173 // UpdateTabFunction:
175 virtual void PopulateResult() OVERRIDE; 174 virtual void PopulateResult() OVERRIDE;
176 175
177 private: 176 private:
178 DISALLOW_COPY_AND_ASSIGN(UpdateOffscreenTabFunction); 177 DISALLOW_COPY_AND_ASSIGN(UpdateOffscreenTabFunction);
179 }; 178 };
180 179
181 #endif // CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_API_H_ 180 #endif // CHROME_BROWSER_EXTENSIONS_API_OFFSCREEN_TABS_OFFSCREEN_TABS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698