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

Side by Side Diff: chrome/browser/importer/importer_list.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros compile fix, still issues Created 8 years, 9 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 | « no previous file | chrome/browser/resources/uber/uber_frame.css » ('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) 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_IMPORTER_IMPORTER_LIST_H_ 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Returns the SourceProfile at |index|. The profiles are ordered such that 45 // Returns the SourceProfile at |index|. The profiles are ordered such that
46 // the profile at index 0 is the likely default browser. The SourceProfile 46 // the profile at index 0 is the likely default browser. The SourceProfile
47 // should be passed to ImporterHost::StartImportSettings(). 47 // should be passed to ImporterHost::StartImportSettings().
48 const importer::SourceProfile& GetSourceProfileAt(size_t index) const; 48 const importer::SourceProfile& GetSourceProfileAt(size_t index) const;
49 49
50 // Returns the SourceProfile for the given |importer_type|. 50 // Returns the SourceProfile for the given |importer_type|.
51 const importer::SourceProfile& GetSourceProfileForImporterType( 51 const importer::SourceProfile& GetSourceProfileForImporterType(
52 int importer_type) const; 52 int importer_type) const;
53 53
54 // Tells interested callers if class is done loading profiles.
Miranda Callahan 2012/03/14 14:35:39 nit: please change this comment to say "...if clas
Dan Beam 2012/03/14 20:23:59 Done.
55 bool source_profiles_loaded() const { return source_profiles_loaded_; }
56
54 private: 57 private:
55 friend class base::RefCountedThreadSafe<ImporterList>; 58 friend class base::RefCountedThreadSafe<ImporterList>;
56 59
57 ~ImporterList(); 60 ~ImporterList();
58 61
59 // The worker method for DetectSourceProfiles(). Must be called on the FILE 62 // The worker method for DetectSourceProfiles(). Must be called on the FILE
60 // thread. 63 // thread.
61 void DetectSourceProfilesWorker(); 64 void DetectSourceProfilesWorker();
62 65
63 // Called by DetectSourceProfilesWorker() on the source thread. This method 66 // Called by DetectSourceProfilesWorker() on the source thread. This method
(...skipping 23 matching lines...) Expand all
87 // TODO(jhawkins): Remove once DetectSourceProfilesHack() is removed. 90 // TODO(jhawkins): Remove once DetectSourceProfilesHack() is removed.
88 bool is_observed_; 91 bool is_observed_;
89 92
90 // True if source profiles are loaded. 93 // True if source profiles are loaded.
91 bool source_profiles_loaded_; 94 bool source_profiles_loaded_;
92 95
93 DISALLOW_COPY_AND_ASSIGN(ImporterList); 96 DISALLOW_COPY_AND_ASSIGN(ImporterList);
94 }; 97 };
95 98
96 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ 99 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/uber/uber_frame.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698