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

Side by Side Diff: extensions/browser/guest_view/extension_view/extension_view_guest.h

Issue 2659773003: Convert ExtensionViewGuest to use the new navigation callbacks. (Closed)
Patch Set: Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/guest_view/browser/guest_view.h" 9 #include "components/guest_view/browser/guest_view.h"
10 #include "extensions/browser/extension_function_dispatcher.h" 10 #include "extensions/browser/extension_function_dispatcher.h"
(...skipping 19 matching lines...) Expand all
30 // GuestViewBase implementation. 30 // GuestViewBase implementation.
31 bool CanRunInDetachedState() const final; 31 bool CanRunInDetachedState() const final;
32 void CreateWebContents(const base::DictionaryValue& create_params, 32 void CreateWebContents(const base::DictionaryValue& create_params,
33 const WebContentsCreatedCallback& callback) final; 33 const WebContentsCreatedCallback& callback) final;
34 void DidInitialize(const base::DictionaryValue& create_params) final; 34 void DidInitialize(const base::DictionaryValue& create_params) final;
35 void DidAttachToEmbedder() final; 35 void DidAttachToEmbedder() final;
36 const char* GetAPINamespace() const final; 36 const char* GetAPINamespace() const final;
37 int GetTaskPrefix() const final; 37 int GetTaskPrefix() const final;
38 38
39 // content::WebContentsObserver implementation. 39 // content::WebContentsObserver implementation.
40 void DidCommitProvisionalLoadForFrame( 40 void DidFinishNavigation(content::NavigationHandle* navigation_handle) final;
41 content::RenderFrameHost* render_frame_host,
42 const GURL& url,
43 ui::PageTransition transition_type) final;
44 void DidNavigateMainFrame(const content::LoadCommittedDetails& details,
45 const content::FrameNavigateParams& params) final;
46 41
47 // Applies attributes to the extensionview. 42 // Applies attributes to the extensionview.
48 void ApplyAttributes(const base::DictionaryValue& params); 43 void ApplyAttributes(const base::DictionaryValue& params);
49 44
50 // The full URL that the extensionview is currently navigated to. 45 // The full URL that the extensionview is currently navigated to.
51 GURL url_; 46 GURL url_;
52 47
53 // The extension URL, including the extension scheme and extension ID. 48 // The extension URL, including the extension scheme and extension ID.
54 GURL extension_url_; 49 GURL extension_url_;
55 50
56 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuest); 51 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuest);
57 }; 52 };
58 53
59 } // namespace extensions 54 } // namespace extensions
60 55
61 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ 56 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698