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

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

Issue 1417033010: Adding <keygen> Content Setting (Blink) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_core
Patch Set: Rebase? Created 5 years, 1 month 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_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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/sequenced_task_runner_helpers.h" 12 #include "base/sequenced_task_runner_helpers.h"
13 #include "content/public/browser/browser_message_filter.h" 13 #include "content/public/browser/browser_message_filter.h"
14 #include "third_party/WebKit/public/web/WebCache.h" 14 #include "third_party/WebKit/public/web/WebCache.h"
15 15
16 class GURL; 16 class GURL;
17 class Profile; 17 class Profile;
18 class ProfileIOData;
18 19
19 namespace chrome_browser_net { 20 namespace chrome_browser_net {
20 class Predictor; 21 class Predictor;
21 } 22 }
22 23
23 namespace content_settings { 24 namespace content_settings {
24 class CookieSettings; 25 class CookieSettings;
25 } 26 }
26 27
27 namespace network_hints { 28 namespace network_hints {
(...skipping 29 matching lines...) Expand all
57 const GURL& origin_url, 58 const GURL& origin_url,
58 const GURL& top_origin_url, 59 const GURL& top_origin_url,
59 const base::string16& name, 60 const base::string16& name,
60 const base::string16& display_name, 61 const base::string16& display_name,
61 bool* allowed); 62 bool* allowed);
62 void OnAllowDOMStorage(int render_frame_id, 63 void OnAllowDOMStorage(int render_frame_id,
63 const GURL& origin_url, 64 const GURL& origin_url,
64 const GURL& top_origin_url, 65 const GURL& top_origin_url,
65 bool local, 66 bool local,
66 bool* allowed); 67 bool* allowed);
68 void OnAllowKeygen(int render_frame_id,
69 const GURL& origin_url,
70 bool* allowed);
67 void OnRequestFileSystemAccessSync(int render_frame_id, 71 void OnRequestFileSystemAccessSync(int render_frame_id,
68 const GURL& origin_url, 72 const GURL& origin_url,
69 const GURL& top_origin_url, 73 const GURL& top_origin_url,
70 IPC::Message* message); 74 IPC::Message* message);
71 #if defined(ENABLE_EXTENSIONS) 75 #if defined(ENABLE_EXTENSIONS)
72 static void FileSystemAccessedSyncOnUIThread( 76 static void FileSystemAccessedSyncOnUIThread(
73 int render_process_id, 77 int render_process_id,
74 int render_frame_id, 78 int render_frame_id,
75 const GURL& url, 79 const GURL& url,
76 bool blocked_by_policy, 80 bool blocked_by_policy,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // activated (ChromeViewHostMsg_FieldTrialActivated). 118 // activated (ChromeViewHostMsg_FieldTrialActivated).
115 void OnFieldTrialActivated(const std::string& trial_name); 119 void OnFieldTrialActivated(const std::string& trial_name);
116 void OnRecordRappor(const std::string& metric, const std::string& sample); 120 void OnRecordRappor(const std::string& metric, const std::string& sample);
117 void OnRecordRapporURL(const std::string& metric, const GURL& sample); 121 void OnRecordRapporURL(const std::string& metric, const GURL& sample);
118 122
119 const int render_process_id_; 123 const int render_process_id_;
120 124
121 // The Profile associated with our renderer process. This should only be 125 // The Profile associated with our renderer process. This should only be
122 // accessed on the UI thread! 126 // accessed on the UI thread!
123 Profile* profile_; 127 Profile* profile_;
128 ProfileIOData* profile_io_data_;
124 // The Predictor for the associated Profile. It is stored so that it can be 129 // The Predictor for the associated Profile. It is stored so that it can be
125 // used on the IO thread. 130 // used on the IO thread.
126 chrome_browser_net::Predictor* predictor_; 131 chrome_browser_net::Predictor* predictor_;
127 132
128 // Used to look up permissions at database creation time. 133 // Used to look up permissions at database creation time.
129 scoped_refptr<content_settings::CookieSettings> cookie_settings_; 134 scoped_refptr<content_settings::CookieSettings> cookie_settings_;
130 135
131 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); 136 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter);
132 }; 137 };
133 138
134 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ 139 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698