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 "webkit/support/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 WebKit::WebURLError error; | 773 WebKit::WebURLError error; |
774 error.domain = WebKit::WebString::fromUTF8(net::kErrorDomain); | 774 error.domain = WebKit::WebString::fromUTF8(net::kErrorDomain); |
775 error.reason = net::ERR_ABORTED; | 775 error.reason = net::ERR_ABORTED; |
776 error.unreachableURL = request.url(); | 776 error.unreachableURL = request.url(); |
777 return error; | 777 return error; |
778 } | 778 } |
779 | 779 |
780 WebKit::WebURLRequest::ExtraData* CreateWebURLRequestExtraData( | 780 WebKit::WebURLRequest::ExtraData* CreateWebURLRequestExtraData( |
781 WebKit::WebReferrerPolicy referrer_policy) { | 781 WebKit::WebReferrerPolicy referrer_policy) { |
782 return new webkit_glue::WebURLRequestExtraDataImpl(referrer_policy, | 782 return new webkit_glue::WebURLRequestExtraDataImpl(referrer_policy, |
| 783 WebKit::WebString(), |
783 WebKit::WebString()); | 784 WebKit::WebString()); |
784 } | 785 } |
785 | 786 |
786 // Bridge for SimpleDatabaseSystem | 787 // Bridge for SimpleDatabaseSystem |
787 | 788 |
788 void SetDatabaseQuota(int quota) { | 789 void SetDatabaseQuota(int quota) { |
789 SimpleDatabaseSystem::GetInstance()->SetDatabaseQuota(quota); | 790 SimpleDatabaseSystem::GetInstance()->SetDatabaseQuota(quota); |
790 } | 791 } |
791 | 792 |
792 void ClearAllDatabases() { | 793 void ClearAllDatabases() { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 // Logging | 873 // Logging |
873 void EnableWebCoreLogChannels(const std::string& channels) { | 874 void EnableWebCoreLogChannels(const std::string& channels) { |
874 webkit_glue::EnableWebCoreLogChannels(channels); | 875 webkit_glue::EnableWebCoreLogChannels(channels); |
875 } | 876 } |
876 | 877 |
877 void SetGamepadData(const WebKit::WebGamepads& pads) { | 878 void SetGamepadData(const WebKit::WebGamepads& pads) { |
878 test_environment->webkit_platform_support()->setGamepadData(pads); | 879 test_environment->webkit_platform_support()->setGamepadData(pads); |
879 } | 880 } |
880 | 881 |
881 } // namespace webkit_support | 882 } // namespace webkit_support |
OLD | NEW |