OLD | NEW |
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 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 5 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "chrome/common/extensions/extension_messages.h" | 33 #include "chrome/common/extensions/extension_messages.h" |
34 #include "chrome/common/extensions/message_bundle.h" | 34 #include "chrome/common/extensions/message_bundle.h" |
35 #include "chrome/common/render_messages.h" | 35 #include "chrome/common/render_messages.h" |
36 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
37 #include "content/public/browser/notification_service.h" | 37 #include "content/public/browser/notification_service.h" |
38 #include "content/public/browser/render_process_host.h" | 38 #include "content/public/browser/render_process_host.h" |
39 #include "content/public/browser/resource_dispatcher_host.h" | 39 #include "content/public/browser/resource_dispatcher_host.h" |
40 #include "content/public/common/process_type.h" | 40 #include "content/public/common/process_type.h" |
41 #include "extensions/common/constants.h" | 41 #include "extensions/common/constants.h" |
42 #include "googleurl/src/gurl.h" | 42 #include "googleurl/src/gurl.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 43 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
45 #include "webkit/plugins/npapi/plugin_list.h" | 45 #include "webkit/plugins/npapi/plugin_list.h" |
46 | 46 |
47 #if defined(USE_TCMALLOC) | 47 #if defined(USE_TCMALLOC) |
48 #include "chrome/browser/browser_about_handler.h" | 48 #include "chrome/browser/browser_about_handler.h" |
49 #endif | 49 #endif |
50 | 50 |
51 using content::BrowserThread; | 51 using content::BrowserThread; |
52 using extensions::APIPermission; | 52 using extensions::APIPermission; |
53 using WebKit::WebCache; | 53 using WebKit::WebCache; |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 | 617 |
618 void ChromeRenderMessageFilter::OnSetCookie(const IPC::Message& message, | 618 void ChromeRenderMessageFilter::OnSetCookie(const IPC::Message& message, |
619 const GURL& url, | 619 const GURL& url, |
620 const GURL& first_party_for_cookies, | 620 const GURL& first_party_for_cookies, |
621 const std::string& cookie) { | 621 const std::string& cookie) { |
622 #if defined(ENABLE_AUTOMATION) | 622 #if defined(ENABLE_AUTOMATION) |
623 AutomationResourceMessageFilter::SetCookiesForUrl( | 623 AutomationResourceMessageFilter::SetCookiesForUrl( |
624 render_process_id_, message.routing_id(), url, cookie); | 624 render_process_id_, message.routing_id(), url, cookie); |
625 #endif | 625 #endif |
626 } | 626 } |
OLD | NEW |