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

Side by Side Diff: chrome/browser/google_apis/operations_base.cc

Issue 10913184: Move basic operation components for Drive API to chrome/browser/google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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
« no previous file with comments | « chrome/browser/google_apis/operations_base.h ('k') | chrome/browser/google_apis/task_util.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) 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/chromeos/gdata/operations_base.h" 5 #include "chrome/browser/google_apis/operations_base.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/common/net/url_util.h" 13 #include "chrome/common/net/url_util.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "google_apis/gaia/gaia_urls.h" 15 #include "google_apis/gaia/gaia_urls.h"
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 418
419 void GetDataOperation::RunCallback(GDataErrorCode fetch_error_code, 419 void GetDataOperation::RunCallback(GDataErrorCode fetch_error_code,
420 scoped_ptr<base::Value> value) { 420 scoped_ptr<base::Value> value) {
421 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 421 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
422 if (!callback_.is_null()) 422 if (!callback_.is_null())
423 callback_.Run(fetch_error_code, value.Pass()); 423 callback_.Run(fetch_error_code, value.Pass());
424 } 424 }
425 425
426 } // namespace gdata 426 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/operations_base.h ('k') | chrome/browser/google_apis/task_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698