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

Side by Side Diff: webkit/support/webkit_support.cc

Issue 10886047: Pepper: Add a X-Requested-With header to URL requests done for Pepper plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: foo Created 8 years 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/url_request_info_util.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698