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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.h

Issue 7745027: Dispatch the following IPC messages in TabContents and handle them via the TabContentsDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/tab_contents/tab_contents_wrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 InfoBarDelegate* GetInfoBarDelegateAt(size_t index); 240 InfoBarDelegate* GetInfoBarDelegateAt(size_t index);
241 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } 241 void set_infobars_enabled(bool value) { infobars_enabled_ = value; }
242 242
243 // Stop this tab rendering in fullscreen mode. 243 // Stop this tab rendering in fullscreen mode.
244 void ExitFullscreenMode(); 244 void ExitFullscreenMode();
245 245
246 private: 246 private:
247 // Internal helpers ---------------------------------------------------------- 247 // Internal helpers ----------------------------------------------------------
248 248
249 // Message handlers. 249 // Message handlers.
250 void OnJSOutOfMemory();
251 void OnRegisterProtocolHandler(const std::string& protocol,
252 const GURL& url,
253 const string16& title);
254 void OnRegisterIntentHandler(const string16& action,
255 const string16& type,
256 const string16& href,
257 const string16& title);
258 void OnWebIntentDispatch(const IPC::Message& message,
259 const string16& action,
260 const string16& type,
261 const string16& data,
262 int intent_id);
263 void OnSnapshot(const SkBitmap& bitmap); 250 void OnSnapshot(const SkBitmap& bitmap);
264 void OnPDFHasUnsupportedFeature(); 251 void OnPDFHasUnsupportedFeature();
265 void OnDidBlockDisplayingInsecureContent(); 252 void OnDidBlockDisplayingInsecureContent();
266 void OnDidBlockRunningInsecureContent(); 253 void OnDidBlockRunningInsecureContent();
267 254
268 // Returns the server that can provide alternate error pages. If the returned 255 // Returns the server that can provide alternate error pages. If the returned
269 // URL is empty, the default error page built into WebKit will be used. 256 // URL is empty, the default error page built into WebKit will be used.
270 GURL GetAlternateErrorPageURL() const; 257 GURL GetAlternateErrorPageURL() const;
271 258
272 // Send the alternate error page URL to the renderer. 259 // Send the alternate error page URL to the renderer.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 349
363 // The supporting objects need to outlive the TabContents dtor (as they may 350 // The supporting objects need to outlive the TabContents dtor (as they may
364 // be called upon during its execution). As a result, this must come last 351 // be called upon during its execution). As a result, this must come last
365 // in the list. 352 // in the list.
366 scoped_ptr<TabContents> tab_contents_; 353 scoped_ptr<TabContents> tab_contents_;
367 354
368 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); 355 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper);
369 }; 356 };
370 357
371 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 358 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/tab_contents/tab_contents_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698