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

Side by Side Diff: webkit/plugins/npapi/plugin_string_stream.cc

Issue 18191004: webkit: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync+rebase Created 7 years, 5 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
« no previous file with comments | « webkit/plugins/npapi/plugin_stream_url.h ('k') | webkit/plugins/npapi/webplugin_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/plugins/npapi/plugin_string_stream.h" 5 #include "webkit/plugins/npapi/plugin_string_stream.h"
6 6
7 #include "googleurl/src/gurl.h" 7 #include "url/gurl.h"
8 8
9 namespace webkit { 9 namespace webkit {
10 namespace npapi { 10 namespace npapi {
11 11
12 PluginStringStream::PluginStringStream( 12 PluginStringStream::PluginStringStream(
13 PluginInstance* instance, 13 PluginInstance* instance,
14 const GURL& url, 14 const GURL& url,
15 bool notify_needed, 15 bool notify_needed,
16 void* notify_data) 16 void* notify_data)
17 : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data) { 17 : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data) {
(...skipping 12 matching lines...) Expand all
30 if (Open(mime_type, std::string(), length, 0, false)) { 30 if (Open(mime_type, std::string(), length, 0, false)) {
31 // TODO - check if it was not fully sent, and figure out a backup plan. 31 // TODO - check if it was not fully sent, and figure out a backup plan.
32 int written = Write(data.c_str(), length, 0); 32 int written = Write(data.c_str(), length, 0);
33 NPReason reason = written == length ? NPRES_DONE : NPRES_NETWORK_ERR; 33 NPReason reason = written == length ? NPRES_DONE : NPRES_NETWORK_ERR;
34 Close(reason); 34 Close(reason);
35 } 35 }
36 } 36 }
37 37
38 } // namespace npapi 38 } // namespace npapi
39 } // namespace webkit 39 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_stream_url.h ('k') | webkit/plugins/npapi/webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698