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

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

Issue 6480106: Add IPCs to check web copy/cut/paste for extensions with the appropriate permission bit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
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
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 "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
13 13
14 class FilePath; 14 class FilePath;
15 class GURL;
15 class HostContentSettingsMap; 16 class HostContentSettingsMap;
16 class Profile; 17 class Profile;
17 18
18 namespace net { 19 namespace net {
19 class URLRequestContextGetter; 20 class URLRequestContextGetter;
20 } 21 }
21 22
22 // This class filters out incoming Chrome-specific IPC messages for the renderer 23 // This class filters out incoming Chrome-specific IPC messages for the renderer
23 // process on the IPC thread. 24 // process on the IPC thread.
24 class ChromeRenderMessageFilter : public BrowserMessageFilter { 25 class ChromeRenderMessageFilter : public BrowserMessageFilter {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #if defined(USE_TCMALLOC) 81 #if defined(USE_TCMALLOC)
81 void OnRendererTcmalloc(base::ProcessId pid, const std::string& output); 82 void OnRendererTcmalloc(base::ProcessId pid, const std::string& output);
82 #endif 83 #endif
83 void OnGetPluginPolicies(ContentSetting* outdated_policy, 84 void OnGetPluginPolicies(ContentSetting* outdated_policy,
84 ContentSetting* authorize_policy); 85 ContentSetting* authorize_policy);
85 void OnAllowDatabase(const std::string& origin_url, 86 void OnAllowDatabase(const std::string& origin_url,
86 const string16& name, 87 const string16& name,
87 const string16& display_name, 88 const string16& display_name,
88 unsigned long estimated_size, 89 unsigned long estimated_size,
89 bool* result); 90 bool* result);
91 void OnCanTriggerClipboardRead(const GURL& url, bool* allowed);
92 void OnCanTriggerClipboardWrite(const GURL& url, bool* allowed);
90 93
91 int render_process_id_; 94 int render_process_id_;
92 95
93 // The Profile associated with our renderer process. This should only be 96 // The Profile associated with our renderer process. This should only be
94 // accessed on the UI thread! 97 // accessed on the UI thread!
95 Profile* profile_; 98 Profile* profile_;
96 scoped_refptr<net::URLRequestContextGetter> request_context_; 99 scoped_refptr<net::URLRequestContextGetter> request_context_;
97 // Used to look up permissions at database creation time. 100 // Used to look up permissions at database creation time.
98 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 101 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
99 102
100 BooleanPrefMember allow_outdated_plugins_; 103 BooleanPrefMember allow_outdated_plugins_;
101 BooleanPrefMember always_authorize_plugins_; 104 BooleanPrefMember always_authorize_plugins_;
102 105
103 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); 106 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter);
104 }; 107 };
105 108
106 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ 109 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698