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

Side by Side Diff: chrome_frame/urlmon_url_request.h

Issue 1153006: When ChromeFrame is running in privileged mode, we should fail the IAuthentic... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « chrome_frame/chrome_frame_activex.cc ('k') | chrome_frame/urlmon_url_request.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_FRAME_URLMON_URL_REQUEST_H_ 5 #ifndef CHROME_FRAME_URLMON_URL_REQUEST_H_
6 #define CHROME_FRAME_URLMON_URL_REQUEST_H_ 6 #define CHROME_FRAME_URLMON_URL_REQUEST_H_
7 7
8 #include <urlmon.h> 8 #include <urlmon.h>
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlcom.h> 10 #include <atlcom.h>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 virtual void AddPrivacyDataForUrl(const std::string& url, 80 virtual void AddPrivacyDataForUrl(const std::string& url,
81 const std::string& policy_ref, 81 const std::string& policy_ref,
82 int32 flags); 82 int32 flags);
83 83
84 // This function passes the window on which notifications are to be fired. 84 // This function passes the window on which notifications are to be fired.
85 void put_notification_window(HWND window) { 85 void put_notification_window(HWND window) {
86 notification_window_ = window; 86 notification_window_ = window;
87 } 87 }
88 88
89 // This function passes information on whether ChromeFrame is running in
90 // privileged mode.
91 void set_privileged_mode(bool privileged_mode) {
92 privileged_mode_ = privileged_mode;
93 }
94
89 private: 95 private:
90 friend class MessageLoop; 96 friend class MessageLoop;
91 friend struct RunnableMethodTraits<UrlmonUrlRequestManager>; 97 friend struct RunnableMethodTraits<UrlmonUrlRequestManager>;
92 static bool ImplementsThreadSafeReferenceCounting() { return true; } 98 static bool ImplementsThreadSafeReferenceCounting() { return true; }
93 void AddRef() {} 99 void AddRef() {}
94 void Release() {} 100 void Release() {}
95 101
96 // PluginUrlRequestManager implementation. 102 // PluginUrlRequestManager implementation.
97 virtual bool IsThreadSafe(); 103 virtual bool IsThreadSafe();
98 virtual void StartRequest(int request_id, 104 virtual void StartRequest(int request_id,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 base::WaitableEvent map_empty_; 136 base::WaitableEvent map_empty_;
131 bool stopping_; 137 bool stopping_;
132 Lock worker_thread_access_; 138 Lock worker_thread_access_;
133 139
134 // This lock is used to synchronize access to the PrivacyInfo data structure 140 // This lock is used to synchronize access to the PrivacyInfo data structure
135 // as it can be accessed from the ui thread and the worker thread. 141 // as it can be accessed from the ui thread and the worker thread.
136 Lock privacy_info_lock_; 142 Lock privacy_info_lock_;
137 PrivacyInfo privacy_info_; 143 PrivacyInfo privacy_info_;
138 // The window to be used to fire notifications on. 144 // The window to be used to fire notifications on.
139 HWND notification_window_; 145 HWND notification_window_;
146 // Set to true if the ChromeFrame instance is running in privileged mode.
147 bool privileged_mode_;
140 }; 148 };
141 149
142 #endif // CHROME_FRAME_URLMON_URL_REQUEST_H_ 150 #endif // CHROME_FRAME_URLMON_URL_REQUEST_H_
143 151
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_activex.cc ('k') | chrome_frame/urlmon_url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698