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

Side by Side Diff: chrome/browser/extensions/api/downloads/downloads_api.cc

Issue 12212047: Linux/ChromeOS Chromium style checker cleanup, chrome/browser/extensions edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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) 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 "chrome/browser/extensions/api/downloads/downloads_api.h" 5 #include "chrome/browser/extensions/api/downloads/downloads_api.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cctype> 8 #include <cctype>
9 #include <iterator> 9 #include <iterator>
10 #include <set> 10 #include <set>
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 json->SetString(kEndTimeKey, TimeToISO8601(download_item->GetEndTime())); 236 json->SetString(kEndTimeKey, TimeToISO8601(download_item->GetEndTime()));
237 // TODO(benjhayden): Implement fileSize. 237 // TODO(benjhayden): Implement fileSize.
238 json->SetInteger(kFileSizeKey, download_item->GetTotalBytes()); 238 json->SetInteger(kFileSizeKey, download_item->GetTotalBytes());
239 return scoped_ptr<base::DictionaryValue>(json); 239 return scoped_ptr<base::DictionaryValue>(json);
240 } 240 }
241 241
242 class DownloadFileIconExtractorImpl : public DownloadFileIconExtractor { 242 class DownloadFileIconExtractorImpl : public DownloadFileIconExtractor {
243 public: 243 public:
244 DownloadFileIconExtractorImpl() {} 244 DownloadFileIconExtractorImpl() {}
245 245
246 ~DownloadFileIconExtractorImpl() {} 246 virtual ~DownloadFileIconExtractorImpl() {}
247 247
248 virtual bool ExtractIconURLForPath(const FilePath& path, 248 virtual bool ExtractIconURLForPath(const FilePath& path,
249 IconLoader::IconSize icon_size, 249 IconLoader::IconSize icon_size,
250 IconURLCallback callback) OVERRIDE; 250 IconURLCallback callback) OVERRIDE;
251 private: 251 private:
252 void OnIconLoadComplete(gfx::Image* icon); 252 void OnIconLoadComplete(gfx::Image* icon);
253 253
254 CancelableTaskTracker cancelable_task_tracker_; 254 CancelableTaskTracker cancelable_task_tracker_;
255 IconURLCallback callback_; 255 IconURLCallback callback_;
256 }; 256 };
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 if (profile_->HasOffTheRecordProfile() && 1146 if (profile_->HasOffTheRecordProfile() &&
1147 !profile_->IsOffTheRecord()) { 1147 !profile_->IsOffTheRecord()) {
1148 DispatchEventInternal( 1148 DispatchEventInternal(
1149 profile_->GetOffTheRecordProfile(), 1149 profile_->GetOffTheRecordProfile(),
1150 event_name, 1150 event_name,
1151 json_args, 1151 json_args,
1152 scoped_ptr<base::ListValue>(args->DeepCopy())); 1152 scoped_ptr<base::ListValue>(args->DeepCopy()));
1153 } 1153 }
1154 DispatchEventInternal(profile_, event_name, json_args, args.Pass()); 1154 DispatchEventInternal(profile_, event_name, json_args, args.Pass());
1155 } 1155 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/dns/dns_apitest.cc ('k') | chrome/browser/extensions/api/downloads/downloads_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698