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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 6250198: More out-of-lining of test code, along with a bunch of GMOCK objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix the gyp files this time Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 mutable scoped_refptr<ChromeURLRequestContextGetter> 64 mutable scoped_refptr<ChromeURLRequestContextGetter>
65 extensions_request_context_getter_; 65 extensions_request_context_getter_;
66 const scoped_refptr<ProfileIOData> io_data_; 66 const scoped_refptr<ProfileIOData> io_data_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(Handle); 68 DISALLOW_COPY_AND_ASSIGN(Handle);
69 }; 69 };
70 70
71 // TODO(willchan): Move this to the private section when 71 // TODO(willchan): Move this to the private section when
72 // ChromeURLRequestContextFactory subclasses don't need it anymore. 72 // ChromeURLRequestContextFactory subclasses don't need it anymore.
73 struct LazyParams { 73 struct LazyParams {
74 LazyParams();
75 ~LazyParams();
76
74 // All of these parameters are intended to be read on the IO thread. 77 // All of these parameters are intended to be read on the IO thread.
75 FilePath cookie_path; 78 FilePath cookie_path;
76 FilePath cache_path; 79 FilePath cache_path;
77 int cache_max_size; 80 int cache_max_size;
78 FilePath media_cache_path; 81 FilePath media_cache_path;
79 int media_cache_max_size; 82 int media_cache_max_size;
80 FilePath extensions_cookie_path; 83 FilePath extensions_cookie_path;
81 IOThread* io_thread; 84 IOThread* io_thread;
82 85
83 // TODO(willchan): Kill this, since the IO thread shouldn't be reading from 86 // TODO(willchan): Kill this, since the IO thread shouldn't be reading from
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 118
116 mutable bool initialized_; 119 mutable bool initialized_;
117 mutable scoped_refptr<RequestContext> main_request_context_; 120 mutable scoped_refptr<RequestContext> main_request_context_;
118 mutable scoped_refptr<RequestContext> media_request_context_; 121 mutable scoped_refptr<RequestContext> media_request_context_;
119 mutable scoped_refptr<RequestContext> extensions_request_context_; 122 mutable scoped_refptr<RequestContext> extensions_request_context_;
120 123
121 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 124 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
122 }; 125 };
123 126
124 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 127 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698