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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 104833006: Switch ContentSettingsObserver to be a RenderFrameObserver instead of a RenderViewObserver (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 int screen_x, int screen_y); 167 int screen_x, int screen_y);
168 168
169 // WebContents ------------------------------------------------------ 169 // WebContents ------------------------------------------------------
170 virtual WebContentsDelegate* GetDelegate() OVERRIDE; 170 virtual WebContentsDelegate* GetDelegate() OVERRIDE;
171 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; 171 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE;
172 virtual NavigationControllerImpl& GetController() OVERRIDE; 172 virtual NavigationControllerImpl& GetController() OVERRIDE;
173 virtual const NavigationControllerImpl& GetController() const OVERRIDE; 173 virtual const NavigationControllerImpl& GetController() const OVERRIDE;
174 virtual BrowserContext* GetBrowserContext() const OVERRIDE; 174 virtual BrowserContext* GetBrowserContext() const OVERRIDE;
175 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; 175 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE;
176 virtual RenderFrameHost* GetMainFrame() OVERRIDE; 176 virtual RenderFrameHost* GetMainFrame() OVERRIDE;
177 virtual void ForEachFrame(
178 const base::Callback<void(RenderFrameHost*)>& on_frame) OVERRIDE;
179 virtual void SendToAllFrames(IPC::Message* message) OVERRIDE;
177 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; 180 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE;
178 virtual void GetRenderViewHostAtPosition( 181 virtual void GetRenderViewHostAtPosition(
179 int x, 182 int x,
180 int y, 183 int y,
181 const GetRenderViewHostCallback& callback) OVERRIDE; 184 const GetRenderViewHostCallback& callback) OVERRIDE;
182 virtual WebContents* GetEmbedderWebContents() const OVERRIDE; 185 virtual WebContents* GetEmbedderWebContents() const OVERRIDE;
183 virtual int GetEmbeddedInstanceID() const OVERRIDE; 186 virtual int GetEmbeddedInstanceID() const OVERRIDE;
184 virtual int GetRoutingID() const OVERRIDE; 187 virtual int GetRoutingID() const OVERRIDE;
185 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE; 188 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE;
186 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const 189 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; 280 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE;
278 281
279 // Implementation of IPC::Sender. 282 // Implementation of IPC::Sender.
280 virtual bool Send(IPC::Message* message) OVERRIDE; 283 virtual bool Send(IPC::Message* message) OVERRIDE;
281 284
282 // RenderFrameHostDelegate --------------------------------------------------- 285 // RenderFrameHostDelegate ---------------------------------------------------
283 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 286 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
284 const IPC::Message& message) OVERRIDE; 287 const IPC::Message& message) OVERRIDE;
285 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; 288 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE;
286 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; 289 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE;
290 virtual WebContents* GetAsWebContents() OVERRIDE;
287 291
288 // RenderViewHostDelegate ---------------------------------------------------- 292 // RenderViewHostDelegate ----------------------------------------------------
289 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 293 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
290 virtual RenderViewHostDelegate::RendererManagement* 294 virtual RenderViewHostDelegate::RendererManagement*
291 GetRendererManagementDelegate() OVERRIDE; 295 GetRendererManagementDelegate() OVERRIDE;
292 virtual bool OnMessageReceived(RenderViewHost* render_view_host, 296 virtual bool OnMessageReceived(RenderViewHost* render_view_host,
293 const IPC::Message& message) OVERRIDE; 297 const IPC::Message& message) OVERRIDE;
294 virtual const GURL& GetURL() const OVERRIDE; 298 virtual const GURL& GetURL() const OVERRIDE;
295 virtual const GURL& GetVisibleURL() const OVERRIDE; 299 virtual const GURL& GetVisibleURL() const OVERRIDE;
296 virtual const GURL& GetLastCommittedURL() const OVERRIDE; 300 virtual const GURL& GetLastCommittedURL() const OVERRIDE;
297 virtual WebContents* GetAsWebContents() OVERRIDE; 301 // RenderFrameHostDelegate has the same method, so list it there because this
302 // interface is going away.
303 // virtual WebContents* GetAsWebContents() OVERRIDE;
298 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 304 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
299 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 305 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
300 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; 306 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE;
301 virtual void RenderViewTerminated(RenderViewHost* render_view_host, 307 virtual void RenderViewTerminated(RenderViewHost* render_view_host,
302 base::TerminationStatus status, 308 base::TerminationStatus status,
303 int error_code) OVERRIDE; 309 int error_code) OVERRIDE;
304 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; 310 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE;
305 virtual void DidRedirectProvisionalLoad( 311 virtual void DidRedirectProvisionalLoad(
306 RenderViewHost* render_view_host, 312 RenderViewHost* render_view_host,
307 int32 page_id, 313 int32 page_id,
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 543
538 // Sets the history for this WebContentsImpl to |history_length| entries, and 544 // Sets the history for this WebContentsImpl to |history_length| entries, and
539 // moves the current page_id to the last entry in the list if it's valid. 545 // moves the current page_id to the last entry in the list if it's valid.
540 // This is mainly used when a prerendered page is swapped into the current 546 // This is mainly used when a prerendered page is swapped into the current
541 // tab. The method is virtual for testing. 547 // tab. The method is virtual for testing.
542 virtual void SetHistoryLengthAndPrune( 548 virtual void SetHistoryLengthAndPrune(
543 const SiteInstance* site_instance, 549 const SiteInstance* site_instance,
544 int merge_history_length, 550 int merge_history_length,
545 int32 minimum_page_id) OVERRIDE; 551 int32 minimum_page_id) OVERRIDE;
546 552
547 // Called by InterstitialPageImpl when it creates a RenderViewHost. 553 // Called by InterstitialPageImpl when it creates a RenderFrameHost.
548 virtual void RenderViewForInterstitialPageCreated( 554 virtual void RenderFrameForInterstitialPageCreated(
549 RenderViewHost* render_view_host) OVERRIDE; 555 RenderFrameHost* render_frame_host) OVERRIDE;
550 556
551 // Sets the passed interstitial as the currently showing interstitial. 557 // Sets the passed interstitial as the currently showing interstitial.
552 // No interstitial page should already be attached. 558 // No interstitial page should already be attached.
553 virtual void AttachInterstitialPage( 559 virtual void AttachInterstitialPage(
554 InterstitialPageImpl* interstitial_page) OVERRIDE; 560 InterstitialPageImpl* interstitial_page) OVERRIDE;
555 561
556 // Unsets the currently showing interstitial. 562 // Unsets the currently showing interstitial.
557 virtual void DetachInterstitialPage() OVERRIDE; 563 virtual void DetachInterstitialPage() OVERRIDE;
558 564
559 // Changes the IsLoading state and notifies the delegate as needed. 565 // Changes the IsLoading state and notifies the delegate as needed.
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 // Maps the ids of pending image downloads to their callbacks 1027 // Maps the ids of pending image downloads to their callbacks
1022 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 1028 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
1023 ImageDownloadMap image_download_map_; 1029 ImageDownloadMap image_download_map_;
1024 1030
1025 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1031 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1026 }; 1032 };
1027 1033
1028 } // namespace content 1034 } // namespace content
1029 1035
1030 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1036 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698