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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 6735004: Move extension messages to their own file and add a RenderViewObserver to start moving the extens... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 class RenderViewHost; 72 class RenderViewHost;
73 class SessionStorageNamespace; 73 class SessionStorageNamespace;
74 class SiteInstance; 74 class SiteInstance;
75 class SkBitmap; 75 class SkBitmap;
76 class TabContents; 76 class TabContents;
77 class TabContentsDelegate; 77 class TabContentsDelegate;
78 class TabContentsObserver; 78 class TabContentsObserver;
79 class TabContentsSSLHelper; 79 class TabContentsSSLHelper;
80 class TabContentsView; 80 class TabContentsView;
81 class URLPattern; 81 class URLPattern;
82 struct ExtensionHostMsg_DomMessage_Params;
82 struct RendererPreferences; 83 struct RendererPreferences;
83 struct ThumbnailScore; 84 struct ThumbnailScore;
84 struct ViewHostMsg_DomMessage_Params;
85 struct ViewHostMsg_FrameNavigate_Params; 85 struct ViewHostMsg_FrameNavigate_Params;
86 struct WebPreferences; 86 struct WebPreferences;
87 87
88 // Describes what goes in the main content area of a tab. TabContents is 88 // Describes what goes in the main content area of a tab. TabContents is
89 // the only type of TabContents, and these should be merged together. 89 // the only type of TabContents, and these should be merged together.
90 class TabContents : public PageNavigator, 90 class TabContents : public PageNavigator,
91 public NotificationObserver, 91 public NotificationObserver,
92 public RenderViewHostDelegate, 92 public RenderViewHostDelegate,
93 public RenderViewHostManager::Delegate, 93 public RenderViewHostManager::Delegate,
94 public JavaScriptAppModalDialogDelegate, 94 public JavaScriptAppModalDialogDelegate,
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 virtual void DidStartLoading(); 904 virtual void DidStartLoading();
905 virtual void DidStopLoading(); 905 virtual void DidStopLoading();
906 virtual void DidChangeLoadProgress(double progress); 906 virtual void DidChangeLoadProgress(double progress);
907 virtual void DocumentOnLoadCompletedInMainFrame( 907 virtual void DocumentOnLoadCompletedInMainFrame(
908 RenderViewHost* render_view_host, 908 RenderViewHost* render_view_host,
909 int32 page_id); 909 int32 page_id);
910 virtual void RequestOpenURL(const GURL& url, const GURL& referrer, 910 virtual void RequestOpenURL(const GURL& url, const GURL& referrer,
911 WindowOpenDisposition disposition); 911 WindowOpenDisposition disposition);
912 virtual void DomOperationResponse(const std::string& json_string, 912 virtual void DomOperationResponse(const std::string& json_string,
913 int automation_id); 913 int automation_id);
914 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params); 914 virtual void ProcessWebUIMessage(
915 const ExtensionHostMsg_DomMessage_Params& params);
915 virtual void ProcessExternalHostMessage(const std::string& message, 916 virtual void ProcessExternalHostMessage(const std::string& message,
916 const std::string& origin, 917 const std::string& origin,
917 const std::string& target); 918 const std::string& target);
918 virtual void RunJavaScriptMessage(const std::wstring& message, 919 virtual void RunJavaScriptMessage(const std::wstring& message,
919 const std::wstring& default_prompt, 920 const std::wstring& default_prompt,
920 const GURL& frame_url, 921 const GURL& frame_url,
921 const int flags, 922 const int flags,
922 IPC::Message* reply_msg, 923 IPC::Message* reply_msg,
923 bool* did_suppress_message); 924 bool* did_suppress_message);
924 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 925 virtual void RunBeforeUnloadConfirm(const std::wstring& message,
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 ObserverList<TabContentsObserver> observers_; 1203 ObserverList<TabContentsObserver> observers_;
1203 1204
1204 // Content restrictions, used to disable print/copy etc based on content's 1205 // Content restrictions, used to disable print/copy etc based on content's
1205 // (full-page plugins for now only) permissions. 1206 // (full-page plugins for now only) permissions.
1206 int content_restrictions_; 1207 int content_restrictions_;
1207 1208
1208 DISALLOW_COPY_AND_ASSIGN(TabContents); 1209 DISALLOW_COPY_AND_ASSIGN(TabContents);
1209 }; 1210 };
1210 1211
1211 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1212 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate.h ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698