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

Side by Side Diff: chrome/browser/content_settings/tab_specific_content_settings.h

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context Created 9 years, 5 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/geolocation/geolocation_settings_state.h" 10 #include "chrome/browser/geolocation/geolocation_settings_state.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // Returns a CookiesTreeModel object for the recoreded blocked cookies. 149 // Returns a CookiesTreeModel object for the recoreded blocked cookies.
150 CookiesTreeModel* GetBlockedCookiesTreeModel(); 150 CookiesTreeModel* GetBlockedCookiesTreeModel();
151 151
152 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; } 152 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; }
153 void set_load_plugins_link_enabled(bool enabled) { 153 void set_load_plugins_link_enabled(bool enabled) {
154 load_plugins_link_enabled_ = enabled; 154 load_plugins_link_enabled_ = enabled;
155 } 155 }
156 156
157 // TabContentsObserver overrides. 157 // TabContentsObserver overrides.
158 virtual bool OnMessageReceived(const IPC::Message& message); 158 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
159 virtual void DidNavigateMainFramePostCommit( 159 virtual void DidNavigateMainFramePostCommit(
160 const content::LoadCommittedDetails& details, 160 const content::LoadCommittedDetails& details,
161 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; 161 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE;
162 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 162 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
163 virtual void DidStartProvisionalLoadForFrame( 163 virtual void DidStartProvisionalLoadForFrame(
164 int64 frame_id, 164 int64 frame_id,
165 bool is_main_frame, 165 bool is_main_frame,
166 const GURL& validated_url, 166 const GURL& validated_url,
167 bool is_error_page, 167 bool is_error_page,
168 RenderViewHost* render_view_host) OVERRIDE; 168 RenderViewHost* render_view_host) OVERRIDE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 bool content_blockage_indicated_to_user_[CONTENT_SETTINGS_NUM_TYPES]; 258 bool content_blockage_indicated_to_user_[CONTENT_SETTINGS_NUM_TYPES];
259 259
260 // Stores which content setting types actually were accessed. 260 // Stores which content setting types actually were accessed.
261 bool content_accessed_[CONTENT_SETTINGS_NUM_TYPES]; 261 bool content_accessed_[CONTENT_SETTINGS_NUM_TYPES];
262 262
263 // Stores the blocked resources for each content type. 263 // Stores the blocked resources for each content type.
264 // Currently only used for plugins. 264 // Currently only used for plugins.
265 scoped_ptr<std::set<std::string> > 265 scoped_ptr<std::set<std::string> >
266 blocked_resources_[CONTENT_SETTINGS_NUM_TYPES]; 266 blocked_resources_[CONTENT_SETTINGS_NUM_TYPES];
267 267
268 // The profile.
269 Profile* profile_;
270
268 // Stores the blocked/allowed cookies. 271 // Stores the blocked/allowed cookies.
269 LocalSharedObjectsContainer allowed_local_shared_objects_; 272 LocalSharedObjectsContainer allowed_local_shared_objects_;
270 LocalSharedObjectsContainer blocked_local_shared_objects_; 273 LocalSharedObjectsContainer blocked_local_shared_objects_;
271 274
272 // Manages information about Geolocation API usage in this page. 275 // Manages information about Geolocation API usage in this page.
273 GeolocationSettingsState geolocation_settings_state_; 276 GeolocationSettingsState geolocation_settings_state_;
274 277
275 // Stores whether the user can load blocked plugins on this page. 278 // Stores whether the user can load blocked plugins on this page.
276 bool load_plugins_link_enabled_; 279 bool load_plugins_link_enabled_;
277 280
278 NotificationRegistrar registrar_; 281 NotificationRegistrar registrar_;
279 282
280 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); 283 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings);
281 }; 284 };
282 285
283 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 286 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698