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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc

Issue 10855034: Drive: Remove gdata_params.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review (#8) fix Created 8 years, 4 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/chromeos/gdata/gdata_wapi_feed_loader.h" 5 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 } 129 }
130 130
131 bool UseLevelDB() { 131 bool UseLevelDB() {
132 return CommandLine::ForCurrentProcess()->HasSwitch( 132 return CommandLine::ForCurrentProcess()->HasSwitch(
133 switches::kUseLevelDBForGData); 133 switches::kUseLevelDBForGData);
134 } 134 }
135 135
136 } // namespace 136 } // namespace
137 137
138 LoadRootFeedParams::LoadRootFeedParams(
139 FilePath search_file_path,
140 bool should_load_from_server,
141 const FindEntryCallback& callback)
142 : search_file_path(search_file_path),
143 should_load_from_server(should_load_from_server),
144 load_error(GDATA_FILE_OK),
145 load_start_time(base::Time::Now()),
146 callback(callback) {
147 }
148
149 LoadRootFeedParams::~LoadRootFeedParams() {
150 }
151
138 GetDocumentsParams::GetDocumentsParams( 152 GetDocumentsParams::GetDocumentsParams(
139 int start_changestamp, 153 int start_changestamp,
140 int root_feed_changestamp, 154 int root_feed_changestamp,
141 std::vector<DocumentFeed*>* feed_list, 155 std::vector<DocumentFeed*>* feed_list,
142 bool should_fetch_multiple_feeds, 156 bool should_fetch_multiple_feeds,
143 const FilePath& search_file_path, 157 const FilePath& search_file_path,
144 const std::string& search_query, 158 const std::string& search_query,
145 const std::string& directory_resource_id, 159 const std::string& directory_resource_id,
146 const FindEntryCallback& callback, 160 const FindEntryCallback& callback,
147 GetDocumentsUiState* ui_state) 161 GetDocumentsUiState* ui_state)
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 dir_iter != changed_dirs.end(); ++dir_iter) { 722 dir_iter != changed_dirs.end(); ++dir_iter) {
709 FOR_EACH_OBSERVER(Observer, observers_, 723 FOR_EACH_OBSERVER(Observer, observers_,
710 OnDirectoryChanged(*dir_iter)); 724 OnDirectoryChanged(*dir_iter));
711 } 725 }
712 } 726 }
713 727
714 return error; 728 return error;
715 } 729 }
716 730
717 } // namespace gdata 731 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698