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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.h

Issue 157713002: Switch DomAutomationController to be a RenderFrameObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nasko@ CR feedback Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/browser/frame_host/frame_tree.h" 11 #include "content/browser/frame_host/frame_tree.h"
12 #include "content/browser/frame_host/navigator_delegate.h" 12 #include "content/browser/frame_host/navigator_delegate.h"
13 #include "content/browser/frame_host/render_frame_host_delegate.h" 13 #include "content/browser/frame_host/render_frame_host_delegate.h"
14 #include "content/browser/renderer_host/render_view_host_delegate.h" 14 #include "content/browser/renderer_host/render_view_host_delegate.h"
15 #include "content/browser/renderer_host/render_widget_host_delegate.h" 15 #include "content/browser/renderer_host/render_widget_host_delegate.h"
16 #include "content/public/browser/dom_operation_notification_details.h"
16 #include "content/public/browser/interstitial_page.h" 17 #include "content/public/browser/interstitial_page.h"
17 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
18 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
19 #include "content/public/browser/web_contents_observer.h" 20 #include "content/public/browser/web_contents_observer.h"
20 #include "content/public/common/renderer_preferences.h" 21 #include "content/public/common/renderer_preferences.h"
21 #include "url/gurl.h" 22 #include "url/gurl.h"
22 23
23 namespace content { 24 namespace content {
24 class NavigationEntry; 25 class NavigationEntry;
25 class NavigationControllerImpl; 26 class NavigationControllerImpl;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const NotificationSource& source, 104 const NotificationSource& source,
104 const NotificationDetails& details) OVERRIDE; 105 const NotificationDetails& details) OVERRIDE;
105 106
106 // WebContentsObserver implementation: 107 // WebContentsObserver implementation:
107 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; 108 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE;
108 virtual void NavigationEntryCommitted( 109 virtual void NavigationEntryCommitted(
109 const LoadCommittedDetails& load_details) OVERRIDE; 110 const LoadCommittedDetails& load_details) OVERRIDE;
110 111
111 // RenderFrameHostDelegate implementation: 112 // RenderFrameHostDelegate implementation:
112 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; 113 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE;
114 virtual void OnDomOperationResponse(
115 const DomOperationNotificationDetails& details) OVERRIDE;
113 116
114 // RenderViewHostDelegate implementation: 117 // RenderViewHostDelegate implementation:
115 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 118 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
116 virtual const GURL& GetURL() const OVERRIDE; 119 virtual const GURL& GetURL() const OVERRIDE;
117 virtual void RenderViewTerminated(RenderViewHost* render_view_host, 120 virtual void RenderViewTerminated(RenderViewHost* render_view_host,
118 base::TerminationStatus status, 121 base::TerminationStatus status,
119 int error_code) OVERRIDE; 122 int error_code) OVERRIDE;
120 virtual void UpdateTitle(RenderViewHost* render_view_host, 123 virtual void UpdateTitle(RenderViewHost* render_view_host,
121 int32 page_id, 124 int32 page_id,
122 const base::string16& title, 125 const base::string16& title,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; 276 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_;
274 277
275 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; 278 scoped_refptr<SessionStorageNamespace> session_storage_namespace_;
276 279
277 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); 280 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl);
278 }; 281 };
279 282
280 } // namespace content 283 } // namespace content
281 284
282 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 285 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698