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

Side by Side Diff: chrome/test/testing_profile.h

Issue 3108042: Support sending BlobData to browser process. Also support sending UploadData... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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/renderer/renderer_webkitclient_impl.cc ('k') | chrome/worker/worker_thread.cc » ('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 #ifndef CHROME_TEST_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_
6 #define CHROME_TEST_TESTING_PROFILE_H_ 6 #define CHROME_TEST_TESTING_PROFILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Schedules a task on the history backend and runs a nested loop until the 246 // Schedules a task on the history backend and runs a nested loop until the
247 // task is processed. This has the effect of blocking the caller until the 247 // task is processed. This has the effect of blocking the caller until the
248 // history service processes all pending requests. 248 // history service processes all pending requests.
249 void BlockUntilHistoryProcessesPendingRequests(); 249 void BlockUntilHistoryProcessesPendingRequests();
250 250
251 // Creates and initializes a profile sync service if the tests require one. 251 // Creates and initializes a profile sync service if the tests require one.
252 virtual TokenService* GetTokenService(); 252 virtual TokenService* GetTokenService();
253 virtual ProfileSyncService* GetProfileSyncService(); 253 virtual ProfileSyncService* GetProfileSyncService();
254 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } 254 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; }
255 255
256 virtual ChromeBlobStorageContext* GetBlobStorageContext() {
257 return NULL;
258 }
259
256 protected: 260 protected:
257 base::Time start_time_; 261 base::Time start_time_;
258 scoped_ptr<TestingPrefService> prefs_; 262 scoped_ptr<TestingPrefService> prefs_;
259 263
260 private: 264 private:
261 // Destroys favicon service if it has been created. 265 // Destroys favicon service if it has been created.
262 void DestroyFaviconService(); 266 void DestroyFaviconService();
263 267
264 // If the history service has been created, it is destroyed. This is invoked 268 // If the history service has been created, it is destroyed. This is invoked
265 // from the destructor. 269 // from the destructor.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 356
353 virtual ProfileId GetRuntimeId() { 357 virtual ProfileId GetRuntimeId() {
354 return original_profile_->GetRuntimeId(); 358 return original_profile_->GetRuntimeId();
355 } 359 }
356 360
357 protected: 361 protected:
358 Profile* original_profile_; 362 Profile* original_profile_;
359 }; 363 };
360 364
361 #endif // CHROME_TEST_TESTING_PROFILE_H_ 365 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webkitclient_impl.cc ('k') | chrome/worker/worker_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698