OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/shell/shell_message_filter.h" | 5 #include "content/shell/shell_message_filter.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/threading/thread_restrictions.h" | 8 #include "base/threading/thread_restrictions.h" |
9 #include "content/public/browser/child_process_security_policy.h" | 9 #include "content/public/browser/child_process_security_policy.h" |
10 #include "content/shell/common/shell_messages.h" | 10 #include "content/shell/common/shell_messages.h" |
11 #include "content/shell/shell_network_delegate.h" | 11 #include "content/shell/shell_network_delegate.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 #include "webkit/browser/database/database_tracker.h" | 13 #include "webkit/browser/database/database_tracker.h" |
14 #include "webkit/browser/fileapi/isolated_context.h" | 14 #include "webkit/browser/fileapi/isolated_context.h" |
15 #include "webkit/quota/quota_manager.h" | 15 #include "webkit/browser/quota/quota_manager.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 ShellMessageFilter::ShellMessageFilter( | 19 ShellMessageFilter::ShellMessageFilter( |
20 int render_process_id, | 20 int render_process_id, |
21 webkit_database::DatabaseTracker* database_tracker, | 21 webkit_database::DatabaseTracker* database_tracker, |
22 quota::QuotaManager* quota_manager) | 22 quota::QuotaManager* quota_manager) |
23 : render_process_id_(render_process_id), | 23 : render_process_id_(render_process_id), |
24 database_tracker_(database_tracker), | 24 database_tracker_(database_tracker), |
25 quota_manager_(quota_manager) { | 25 quota_manager_(quota_manager) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 quota_manager_->SetTemporaryGlobalOverrideQuota( | 82 quota_manager_->SetTemporaryGlobalOverrideQuota( |
83 quota * quota::QuotaManager::kPerHostTemporaryPortion, | 83 quota * quota::QuotaManager::kPerHostTemporaryPortion, |
84 quota::QuotaCallback()); | 84 quota::QuotaCallback()); |
85 } | 85 } |
86 | 86 |
87 void ShellMessageFilter::OnAcceptAllCookies(bool accept) { | 87 void ShellMessageFilter::OnAcceptAllCookies(bool accept) { |
88 ShellNetworkDelegate::SetAcceptAllCookies(accept); | 88 ShellNetworkDelegate::SetAcceptAllCookies(accept); |
89 } | 89 } |
90 | 90 |
91 } // namespace content | 91 } // namespace content |
OLD | NEW |