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

Side by Side Diff: chrome/browser/guest_view/app_view/app_view_guest.h

Issue 426593007: Refactor guest view availability to be API not permission based. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MostLikelyContextType Created 6 years, 4 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 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_APP_VIEW_APP_VIEW_GUEST_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_
6 #define CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "chrome/browser/guest_view/guest_view.h" 9 #include "chrome/browser/guest_view/guest_view.h"
10 #include "extensions/browser/extension_function_dispatcher.h" 10 #include "extensions/browser/extension_function_dispatcher.h"
(...skipping 29 matching lines...) Expand all
40 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; 40 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
41 41
42 // content::WebContentsObserver implementation. 42 // content::WebContentsObserver implementation.
43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
44 44
45 // content::WebContentsDelegate implementation. 45 // content::WebContentsDelegate implementation.
46 virtual bool HandleContextMenu( 46 virtual bool HandleContextMenu(
47 const content::ContextMenuParams& params) OVERRIDE; 47 const content::ContextMenuParams& params) OVERRIDE;
48 48
49 // GuestViewBase implementation. 49 // GuestViewBase implementation.
50 virtual bool CanEmbedderUseGuestView( 50 virtual const char* GetAPINamespace() OVERRIDE;
51 const std::string& embedder_extension_id) OVERRIDE;
52 virtual void CreateWebContents( 51 virtual void CreateWebContents(
53 const std::string& embedder_extension_id, 52 const std::string& embedder_extension_id,
54 int embedder_render_process_id, 53 int embedder_render_process_id,
55 const base::DictionaryValue& create_params, 54 const base::DictionaryValue& create_params,
56 const WebContentsCreatedCallback& callback) OVERRIDE; 55 const WebContentsCreatedCallback& callback) OVERRIDE;
57 virtual void DidAttachToEmbedder() OVERRIDE; 56 virtual void DidAttachToEmbedder() OVERRIDE;
58 virtual void DidInitialize() OVERRIDE; 57 virtual void DidInitialize() OVERRIDE;
59 58
60 private: 59 private:
61 AppViewGuest(content::BrowserContext* browser_context, 60 AppViewGuest(content::BrowserContext* browser_context,
(...skipping 16 matching lines...) Expand all
78 extension_function_dispatcher_; 77 extension_function_dispatcher_;
79 78
80 // This is used to ensure pending tasks will not fire after this object is 79 // This is used to ensure pending tasks will not fire after this object is
81 // destroyed. 80 // destroyed.
82 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; 81 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_;
83 82
84 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); 83 DISALLOW_COPY_AND_ASSIGN(AppViewGuest);
85 }; 84 };
86 85
87 #endif // CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ 86 #endif // CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/app_view/app_view_constants.cc ('k') | chrome/browser/guest_view/app_view/app_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698