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

Side by Side Diff: ui/base/dragdrop/os_exchange_data.cc

Issue 1154283003: Change most uses of Pickle to base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 "ui/base/dragdrop/os_exchange_data.h" 5 #include "ui/base/dragdrop/os_exchange_data.h"
6 6
7 #include "base/pickle.h" 7 #include "base/pickle.h"
8 #include "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void OSExchangeData::SetFilename(const base::FilePath& path) { 46 void OSExchangeData::SetFilename(const base::FilePath& path) {
47 provider_->SetFilename(path); 47 provider_->SetFilename(path);
48 } 48 }
49 49
50 void OSExchangeData::SetFilenames( 50 void OSExchangeData::SetFilenames(
51 const std::vector<FileInfo>& filenames) { 51 const std::vector<FileInfo>& filenames) {
52 provider_->SetFilenames(filenames); 52 provider_->SetFilenames(filenames);
53 } 53 }
54 54
55 void OSExchangeData::SetPickledData(const CustomFormat& format, 55 void OSExchangeData::SetPickledData(const CustomFormat& format,
56 const Pickle& data) { 56 const base::Pickle& data) {
57 provider_->SetPickledData(format, data); 57 provider_->SetPickledData(format, data);
58 } 58 }
59 59
60 bool OSExchangeData::GetString(base::string16* data) const { 60 bool OSExchangeData::GetString(base::string16* data) const {
61 return provider_->GetString(data); 61 return provider_->GetString(data);
62 } 62 }
63 63
64 bool OSExchangeData::GetURLAndTitle(FilenameToURLPolicy policy, 64 bool OSExchangeData::GetURLAndTitle(FilenameToURLPolicy policy,
65 GURL* url, 65 GURL* url,
66 base::string16* title) const { 66 base::string16* title) const {
67 return provider_->GetURLAndTitle(policy, url, title); 67 return provider_->GetURLAndTitle(policy, url, title);
68 } 68 }
69 69
70 bool OSExchangeData::GetFilename(base::FilePath* path) const { 70 bool OSExchangeData::GetFilename(base::FilePath* path) const {
71 return provider_->GetFilename(path); 71 return provider_->GetFilename(path);
72 } 72 }
73 73
74 bool OSExchangeData::GetFilenames( 74 bool OSExchangeData::GetFilenames(
75 std::vector<FileInfo>* filenames) const { 75 std::vector<FileInfo>* filenames) const {
76 return provider_->GetFilenames(filenames); 76 return provider_->GetFilenames(filenames);
77 } 77 }
78 78
79 bool OSExchangeData::GetPickledData(const CustomFormat& format, 79 bool OSExchangeData::GetPickledData(const CustomFormat& format,
80 Pickle* data) const { 80 base::Pickle* data) const {
81 return provider_->GetPickledData(format, data); 81 return provider_->GetPickledData(format, data);
82 } 82 }
83 83
84 bool OSExchangeData::HasString() const { 84 bool OSExchangeData::HasString() const {
85 return provider_->HasString(); 85 return provider_->HasString();
86 } 86 }
87 87
88 bool OSExchangeData::HasURL(FilenameToURLPolicy policy) const { 88 bool OSExchangeData::HasURL(FilenameToURLPolicy policy) const {
89 return provider_->HasURL(policy); 89 return provider_->HasURL(policy);
90 } 90 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) { 142 void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) {
143 provider_->SetHtml(html, base_url); 143 provider_->SetHtml(html, base_url);
144 } 144 }
145 145
146 bool OSExchangeData::GetHtml(base::string16* html, GURL* base_url) const { 146 bool OSExchangeData::GetHtml(base::string16* html, GURL* base_url) const {
147 return provider_->GetHtml(html, base_url); 147 return provider_->GetHtml(html, base_url);
148 } 148 }
149 #endif 149 #endif
150 150
151 } // namespace ui 151 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/clipboard/scoped_clipboard_writer.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698