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

Side by Side Diff: chrome/browser/guest_view/guest_view_base.h

Issue 301303003: GuestView: Move Disable Drag and Drop Out to Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@change_browser_plugin_guest_delegate_lifetime
Patch Set: Created 6 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GUEST_VIEW_GUEST_VIEW_BASE_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Returns the embedder's process ID. 128 // Returns the embedder's process ID.
129 int embedder_render_process_id() const { return embedder_render_process_id_; } 129 int embedder_render_process_id() const { return embedder_render_process_id_; }
130 130
131 GuestViewBase* GetOpener() const { 131 GuestViewBase* GetOpener() const {
132 return opener_.get(); 132 return opener_.get();
133 } 133 }
134 134
135 void SetOpener(GuestViewBase* opener); 135 void SetOpener(GuestViewBase* opener);
136 136
137 // WebContentsObserver implementation. 137 // WebContentsObserver implementation.
138 virtual void DidStopLoading(
139 content::RenderViewHost* render_view_host) OVERRIDE;
138 virtual void WebContentsDestroyed() OVERRIDE; 140 virtual void WebContentsDestroyed() OVERRIDE;
139 141
140 // WebContentsDelegate implementation. 142 // WebContentsDelegate implementation.
141 virtual bool ShouldFocusPageAfterCrash() OVERRIDE; 143 virtual bool ShouldFocusPageAfterCrash() OVERRIDE;
142 virtual bool PreHandleGestureEvent( 144 virtual bool PreHandleGestureEvent(
143 content::WebContents* source, 145 content::WebContents* source,
144 const blink::WebGestureEvent& event) OVERRIDE; 146 const blink::WebGestureEvent& event) OVERRIDE;
145 147
146 // BrowserPluginGuestDelegate implementation. 148 // BrowserPluginGuestDelegate implementation.
147 virtual void Destroy() OVERRIDE; 149 virtual void Destroy() OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_; 192 scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_;
191 193
192 // This is used to ensure pending tasks will not fire after this object is 194 // This is used to ensure pending tasks will not fire after this object is
193 // destroyed. 195 // destroyed.
194 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 196 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
195 197
196 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 198 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
197 }; 199 };
198 200
199 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 201 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/guest_view/guest_view_base.cc » ('j') | chrome/browser/guest_view/guest_view_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698