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

Side by Side Diff: content/browser/plugin_content_origin_whitelist.h

Issue 2667753005: Convert PluginContentOriginWhitelist to use the new navigation callbacks. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | content/browser/plugin_content_origin_whitelist.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 CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ 5 #ifndef CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_
6 #define CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ 6 #define CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 18 matching lines...) Expand all
29 class PluginContentOriginWhitelist : public WebContentsObserver { 29 class PluginContentOriginWhitelist : public WebContentsObserver {
30 public: 30 public:
31 explicit PluginContentOriginWhitelist(WebContents* web_contents); 31 explicit PluginContentOriginWhitelist(WebContents* web_contents);
32 ~PluginContentOriginWhitelist() override; 32 ~PluginContentOriginWhitelist() override;
33 33
34 private: 34 private:
35 // WebContentsObserver implementation. 35 // WebContentsObserver implementation.
36 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; 36 void RenderFrameCreated(RenderFrameHost* render_frame_host) override;
37 bool OnMessageReceived(const IPC::Message& message, 37 bool OnMessageReceived(const IPC::Message& message,
38 RenderFrameHost* render_frame_host) override; 38 RenderFrameHost* render_frame_host) override;
39 void DidNavigateMainFrame( 39 void DidFinishNavigation(NavigationHandle* navigation_handle) override;
40 const LoadCommittedDetails& details,
41 const FrameNavigateParams& params) override;
42 40
43 void OnPluginContentOriginAllowed(const url::Origin& content_origin); 41 void OnPluginContentOriginAllowed(const url::Origin& content_origin);
44 42
45 std::set<url::Origin> whitelist_; 43 std::set<url::Origin> whitelist_;
46 44
47 DISALLOW_COPY_AND_ASSIGN(PluginContentOriginWhitelist); 45 DISALLOW_COPY_AND_ASSIGN(PluginContentOriginWhitelist);
48 }; 46 };
49 47
50 } // namespace content 48 } // namespace content
51 49
52 #endif // CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ 50 #endif // CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/plugin_content_origin_whitelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698