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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 2370001: Store blocked cookies in the tab contents. (Closed)
Patch Set: updates Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 // ContentSettings------------------------------------------------------------ 311 // ContentSettings------------------------------------------------------------
312 // Interface for content settings related events. 312 // Interface for content settings related events.
313 313
314 class ContentSettings { 314 class ContentSettings {
315 public: 315 public:
316 // Called when content in the current page was blocked due to the user's 316 // Called when content in the current page was blocked due to the user's
317 // content settings. 317 // content settings.
318 virtual void OnContentBlocked(ContentSettingsType type) = 0; 318 virtual void OnContentBlocked(ContentSettingsType type) = 0;
319 319
320 // Called when a specific cookie in the current page was accessed.
321 // |blocked_by_policy| should be true, if the cookie was blocked due to the
322 // user's content settings. In that case, this function should invoke
323 // OnContentBlocked.
324 virtual void OnCookieAccessed(const GURL& url,
325 const std::string& cookie_line,
326 bool blocked_by_policy) = 0;
327
328 // Called when a specific local storage area in the current page was
329 // accessed. If access was blocked due to the user's content settings,
330 // |blocked_by_policy| should be true, and this function should invoke
331 // OnContentBlocked.
332 virtual void OnLocalStorageAccessed(const GURL& url,
333 bool blocked_by_policy) = 0;
334
335 // Called when a specific Web database in the current page was accessed. If
336 // access was blocked due to the user's content settings,
337 // |blocked_by_policy| should eb true, and this function should invoke
338 // OnContentBlocked.
339 virtual void OnWebDatabaseAccessed(const GURL& url,
340 const string16& name,
341 const string16& display_name,
342 unsigned long estimated_size,
343 bool blocked_by_policy) = 0;
344
320 // Called when geolocation permission was set in a frame on the current 345 // Called when geolocation permission was set in a frame on the current
321 // page. 346 // page.
322 virtual void OnGeolocationPermissionSet(const GURL& requesting_frame, 347 virtual void OnGeolocationPermissionSet(const GURL& requesting_frame,
323 bool allowed) = 0; 348 bool allowed) = 0;
324 }; 349 };
325 350
326 // Save ---------------------------------------------------------------------- 351 // Save ----------------------------------------------------------------------
327 // Interface for saving web pages. 352 // Interface for saving web pages.
328 353
329 class Save { 354 class Save {
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 virtual bool IsExternalTabContainer() const; 693 virtual bool IsExternalTabContainer() const;
669 694
670 // The RenderView has inserted one css file into page. 695 // The RenderView has inserted one css file into page.
671 virtual void DidInsertCSS() {} 696 virtual void DidInsertCSS() {}
672 697
673 // A different node in the page got focused. 698 // A different node in the page got focused.
674 virtual void FocusedNodeChanged() {} 699 virtual void FocusedNodeChanged() {}
675 }; 700 };
676 701
677 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 702 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698