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

Side by Side Diff: ppapi/cpp/dev/url_util_dev.cc

Issue 23444004: Add GetPluginRefererURL to PPB_URLUtil_Dev interface to get the 'Referer' HTTP header value that wa… (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 3 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
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 #include "ppapi/cpp/dev/url_util_dev.h" 5 #include "ppapi/cpp/dev/url_util_dev.h"
6 6
7 #include "ppapi/cpp/instance_handle.h" 7 #include "ppapi/cpp/instance_handle.h"
8 #include "ppapi/cpp/module.h" 8 #include "ppapi/cpp/module.h"
9 9
10 namespace pp { 10 namespace pp {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 interface_->GetDocumentURL(instance.pp_instance(), components)); 75 interface_->GetDocumentURL(instance.pp_instance(), components));
76 } 76 }
77 77
78 Var URLUtil_Dev::GetPluginInstanceURL(const InstanceHandle& instance, 78 Var URLUtil_Dev::GetPluginInstanceURL(const InstanceHandle& instance,
79 PP_URLComponents_Dev* components) const { 79 PP_URLComponents_Dev* components) const {
80 return Var(PASS_REF, 80 return Var(PASS_REF,
81 interface_->GetPluginInstanceURL(instance.pp_instance(), 81 interface_->GetPluginInstanceURL(instance.pp_instance(),
82 components)); 82 components));
83 } 83 }
84 84
85 Var URLUtil_Dev::GetPluginRefererURL(const InstanceHandle& instance,
86 PP_URLComponents_Dev* components) const {
87 return Var(PASS_REF,
88 interface_->GetPluginRefererURL(instance.pp_instance(),
89 components));
90 }
91
85 } // namespace pp 92 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698