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

Side by Side Diff: chrome/renderer/content_settings_observer.h

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_
6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ 6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 private: 89 private:
90 FRIEND_TEST_ALL_PREFIXES(ContentSettingsObserverTest, WhitelistedSchemes); 90 FRIEND_TEST_ALL_PREFIXES(ContentSettingsObserverTest, WhitelistedSchemes);
91 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, 91 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest,
92 ContentSettingsInterstitialPages); 92 ContentSettingsInterstitialPages);
93 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, PluginsTemporarilyAllowed); 93 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, PluginsTemporarilyAllowed);
94 94
95 // RenderFrameObserver implementation. 95 // RenderFrameObserver implementation.
96 bool OnMessageReceived(const IPC::Message& message) override; 96 bool OnMessageReceived(const IPC::Message& message) override;
97 void DidCommitProvisionalLoad(bool is_new_navigation, 97 void DidCommitProvisionalLoad(bool is_new_navigation,
98 bool is_same_page_navigation) override; 98 bool is_same_page_navigation) override;
99 void OnDestruct() override;
99 100
100 // Message handlers. 101 // Message handlers.
101 void OnLoadBlockedPlugins(const std::string& identifier); 102 void OnLoadBlockedPlugins(const std::string& identifier);
102 void OnSetAsInterstitial(); 103 void OnSetAsInterstitial();
103 void OnSetAllowDisplayingInsecureContent(bool allow); 104 void OnSetAllowDisplayingInsecureContent(bool allow);
104 void OnSetAllowRunningInsecureContent(bool allow); 105 void OnSetAllowRunningInsecureContent(bool allow);
105 void OnReloadFrame(); 106 void OnReloadFrame();
106 void OnRequestFileSystemAccessAsyncResponse(int request_id, bool allowed); 107 void OnRequestFileSystemAccessAsyncResponse(int request_id, bool allowed);
107 108
108 // Resets the |content_blocked_| array. 109 // Resets the |content_blocked_| array.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; 159 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap;
159 PermissionRequestMap permission_requests_; 160 PermissionRequestMap permission_requests_;
160 161
161 // If true, IsWhitelistedForContentSettings will always return true. 162 // If true, IsWhitelistedForContentSettings will always return true.
162 const bool should_whitelist_; 163 const bool should_whitelist_;
163 164
164 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); 165 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver);
165 }; 166 };
166 167
167 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ 168 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.cc ('k') | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698