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

Unified Diff: content/browser/debugger/devtools_manager_impl.cc

Issue 9360014: Create a content public browser API around the ChildProcessSecurityPolicy class. The implementati... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/debugger/devtools_manager_impl.cc
===================================================================
--- content/browser/debugger/devtools_manager_impl.cc (revision 120814)
+++ content/browser/debugger/devtools_manager_impl.cc (working copy)
@@ -8,7 +8,7 @@
#include "base/bind.h"
#include "base/message_loop.h"
-#include "content/browser/child_process_security_policy.h"
+#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/debugger/devtools_netlog_observer.h"
#include "content/browser/debugger/render_view_devtools_agent_host.h"
#include "content/browser/renderer_host/render_view_host.h"
@@ -240,7 +240,8 @@
int process_id = agent_host->GetRenderProcessId();
if (process_id != -1)
- ChildProcessSecurityPolicy::GetInstance()->GrantReadRawCookies(process_id);
+ ChildProcessSecurityPolicyImpl::GetInstance()->GrantReadRawCookies(
+ process_id);
}
void DevToolsManagerImpl::UnbindClientHost(DevToolsAgentHost* agent_host,
@@ -274,7 +275,8 @@
return;
}
// We've disconnected from the last renderer -> revoke cookie permissions.
- ChildProcessSecurityPolicy::GetInstance()->RevokeReadRawCookies(process_id);
+ ChildProcessSecurityPolicyImpl::GetInstance()->RevokeReadRawCookies(
+ process_id);
}
void DevToolsManagerImpl::CloseAllClientHosts() {
« no previous file with comments | « content/browser/child_process_security_policy_unittest.cc ('k') | content/browser/renderer_host/blob_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698