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

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

Issue 6915017: Chrome side to allow WebKit layer to use WebPermissionClient to check if access to local storage ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_message_filter.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 (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_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/common/content_settings.h" 9 #include "chrome/common/content_settings.h"
10 #include "chrome/browser/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
11 #include "content/browser/browser_message_filter.h" 11 #include "content/browser/browser_message_filter.h"
12 #include "content/common/dom_storage_common.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
13 14
14 class FilePath; 15 class FilePath;
16 class GURL;
15 class HostContentSettingsMap; 17 class HostContentSettingsMap;
16 class Profile; 18 class Profile;
17 19
18 namespace net { 20 namespace net {
19 class URLRequestContextGetter; 21 class URLRequestContextGetter;
20 } 22 }
21 23
22 // This class filters out incoming Chrome-specific IPC messages for the renderer 24 // This class filters out incoming Chrome-specific IPC messages for the renderer
23 // process on the IPC thread. 25 // process on the IPC thread.
24 class ChromeRenderMessageFilter : public BrowserMessageFilter { 26 class ChromeRenderMessageFilter : public BrowserMessageFilter {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #if defined(USE_TCMALLOC) 82 #if defined(USE_TCMALLOC)
81 void OnRendererTcmalloc(base::ProcessId pid, const std::string& output); 83 void OnRendererTcmalloc(base::ProcessId pid, const std::string& output);
82 #endif 84 #endif
83 void OnGetPluginPolicies(ContentSetting* outdated_policy, 85 void OnGetPluginPolicies(ContentSetting* outdated_policy,
84 ContentSetting* authorize_policy); 86 ContentSetting* authorize_policy);
85 void OnAllowDatabase(const std::string& origin_url, 87 void OnAllowDatabase(const std::string& origin_url,
86 const string16& name, 88 const string16& name,
87 const string16& display_name, 89 const string16& display_name,
88 unsigned long estimated_size, 90 unsigned long estimated_size,
89 bool* result); 91 bool* result);
92 void OnAllowDOMStorage(int render_view_id,
93 const GURL& url,
94 DOMStorageType type,
95 bool* result);
90 96
91 int render_process_id_; 97 int render_process_id_;
92 98
93 // The Profile associated with our renderer process. This should only be 99 // The Profile associated with our renderer process. This should only be
94 // accessed on the UI thread! 100 // accessed on the UI thread!
95 Profile* profile_; 101 Profile* profile_;
96 scoped_refptr<net::URLRequestContextGetter> request_context_; 102 scoped_refptr<net::URLRequestContextGetter> request_context_;
97 // Used to look up permissions at database creation time. 103 // Used to look up permissions at database creation time.
98 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 104 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
99 105
100 BooleanPrefMember allow_outdated_plugins_; 106 BooleanPrefMember allow_outdated_plugins_;
101 BooleanPrefMember always_authorize_plugins_; 107 BooleanPrefMember always_authorize_plugins_;
102 108
103 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); 109 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter);
104 }; 110 };
105 111
106 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ 112 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698