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

Side by Side Diff: content/browser/renderer_host/render_message_filter.h

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 9 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/test/testing_profile.cc ('k') | content/browser/renderer_host/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 CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 // This class filters out incoming IPC messages for the renderer process on the 56 // This class filters out incoming IPC messages for the renderer process on the
57 // IPC thread. 57 // IPC thread.
58 class RenderMessageFilter : public BrowserMessageFilter { 58 class RenderMessageFilter : public BrowserMessageFilter {
59 public: 59 public:
60 // Create the filter. 60 // Create the filter.
61 RenderMessageFilter(int render_process_id, 61 RenderMessageFilter(int render_process_id,
62 PluginService* plugin_service, 62 PluginService* plugin_service,
63 Profile* profile, 63 Profile* profile,
64 URLRequestContextGetter* request_context,
64 RenderWidgetHelper* render_widget_helper); 65 RenderWidgetHelper* render_widget_helper);
65 66
66 // BrowserMessageFilter methods: 67 // BrowserMessageFilter methods:
67 virtual bool OnMessageReceived(const IPC::Message& message, 68 virtual bool OnMessageReceived(const IPC::Message& message,
68 bool* message_was_ok); 69 bool* message_was_ok);
69 virtual void OnDestruct() const; 70 virtual void OnDestruct() const;
70 71
71 int render_process_id() const { return render_process_id_; } 72 int render_process_id() const { return render_process_id_; }
72 ResourceDispatcherHost* resource_dispatcher_host() { 73 ResourceDispatcherHost* resource_dispatcher_host() {
73 return resource_dispatcher_host_; 74 return resource_dispatcher_host_;
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 virtual ~CookiesEnabledCompletion(); 391 virtual ~CookiesEnabledCompletion();
391 392
392 virtual void RunWithParams(const Tuple1<int>& params); 393 virtual void RunWithParams(const Tuple1<int>& params);
393 394
394 private: 395 private:
395 IPC::Message* reply_msg_; 396 IPC::Message* reply_msg_;
396 scoped_refptr<RenderMessageFilter> filter_; 397 scoped_refptr<RenderMessageFilter> filter_;
397 }; 398 };
398 399
399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 400 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « chrome/test/testing_profile.cc ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698