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

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

Issue 913393003: Restrict extensionview to chrome-extension:// (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 "extensions/browser/extension_function_dispatcher.h" 9 #include "extensions/browser/extension_function_dispatcher.h"
10 #include "extensions/browser/guest_view/extension_view/extension_view_guest_dele gate.h" 10 #include "extensions/browser/guest_view/extension_view/extension_view_guest_dele gate.h"
(...skipping 30 matching lines...) Expand all
41 bool OnMessageReceived(const IPC::Message& message) override; 41 bool OnMessageReceived(const IPC::Message& message) override;
42 42
43 private: 43 private:
44 ExtensionViewGuest(content::WebContents* owner_web_contents); 44 ExtensionViewGuest(content::WebContents* owner_web_contents);
45 ~ExtensionViewGuest() override; 45 ~ExtensionViewGuest() override;
46 void OnRequest(const ExtensionHostMsg_Request_Params& params); 46 void OnRequest(const ExtensionHostMsg_Request_Params& params);
47 47
48 // Applies attributes to the extensionview. 48 // Applies attributes to the extensionview.
49 void ApplyAttributes(const base::DictionaryValue& params); 49 void ApplyAttributes(const base::DictionaryValue& params);
50 50
51 // The URL the extensionview should navigate to.
52 GURL ResolveURL(const std::string& src);
53
51 scoped_ptr<extensions::ExtensionFunctionDispatcher> 54 scoped_ptr<extensions::ExtensionFunctionDispatcher>
52 extension_function_dispatcher_; 55 extension_function_dispatcher_;
53 scoped_ptr<extensions::ExtensionViewGuestDelegate> 56 scoped_ptr<extensions::ExtensionViewGuestDelegate>
54 extension_view_guest_delegate_; 57 extension_view_guest_delegate_;
55 GURL view_page_; 58 GURL view_page_;
59 std::string extension_id_;
60 GURL extension_url_;
56 61
57 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuest); 62 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuest);
58 }; 63 };
59 64
60 } // namespace extensions 65 } // namespace extensions
61 66
62 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ 67 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698