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

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

Issue 531963002: Add support for file inputs for all guest views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement RunFileChooser as GuestViewBase method Created 6 years, 3 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
« no previous file with comments | « no previous file | extensions/browser/guest_view/guest_view_base.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 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 EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 6 #define EXTENSIONS_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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 static void RegisterGuestViewTypes(); 272 static void RegisterGuestViewTypes();
273 273
274 // WebContentsObserver implementation. 274 // WebContentsObserver implementation.
275 virtual void DidStopLoading( 275 virtual void DidStopLoading(
276 content::RenderViewHost* render_view_host) OVERRIDE FINAL; 276 content::RenderViewHost* render_view_host) OVERRIDE FINAL;
277 virtual void RenderViewReady() OVERRIDE FINAL; 277 virtual void RenderViewReady() OVERRIDE FINAL;
278 virtual void WebContentsDestroyed() OVERRIDE FINAL; 278 virtual void WebContentsDestroyed() OVERRIDE FINAL;
279 279
280 // WebContentsDelegate implementation. 280 // WebContentsDelegate implementation.
281 virtual void RunFileChooser(
282 content::WebContents* web_contents,
283 const content::FileChooserParams& params) OVERRIDE;
281 virtual bool ShouldFocusPageAfterCrash() OVERRIDE FINAL; 284 virtual bool ShouldFocusPageAfterCrash() OVERRIDE FINAL;
282 virtual bool PreHandleGestureEvent( 285 virtual bool PreHandleGestureEvent(
283 content::WebContents* source, 286 content::WebContents* source,
284 const blink::WebGestureEvent& event) OVERRIDE FINAL; 287 const blink::WebGestureEvent& event) OVERRIDE FINAL;
285 288
286 content::WebContents* embedder_web_contents_; 289 content::WebContents* embedder_web_contents_;
287 std::string embedder_extension_id_; 290 std::string embedder_extension_id_;
288 int embedder_render_process_id_; 291 int embedder_render_process_id_;
289 content::BrowserContext* browser_context_; 292 content::BrowserContext* browser_context_;
290 // |guest_instance_id_| is a profile-wide unique identifier for a guest 293 // |guest_instance_id_| is a profile-wide unique identifier for a guest
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // This is used to ensure pending tasks will not fire after this object is 335 // This is used to ensure pending tasks will not fire after this object is
333 // destroyed. 336 // destroyed.
334 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 337 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
335 338
336 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 339 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
337 }; 340 };
338 341
339 } // namespace extensions 342 } // namespace extensions
340 343
341 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 344 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698