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

Side by Side Diff: chrome/browser/chromeos/drive/drive_app_registry.h

Issue 22297004: drive: Stop making multiple GetAppList() requests from DriveAppRegistry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify Created 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_app_registry.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) 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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_APP_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_APP_REGISTRY_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_APP_REGISTRY_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_APP_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/google_apis/gdata_errorcode.h" 15 #include "chrome/browser/google_apis/gdata_errorcode.h"
16 #include "chrome/browser/google_apis/gdata_wapi_parser.h" 16 #include "chrome/browser/google_apis/gdata_wapi_parser.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace base { 19 namespace base {
20 class FilePath; 20 class FilePath;
21 } // namespace base 21 } // namespace base
22 22
23 namespace google_apis { 23 namespace google_apis {
24 class AppList; 24 class AppList;
25 } // namespace AppList 25 } // namespace google_apis
26 26
27 namespace drive { 27 namespace drive {
28 28
29 class JobScheduler; 29 class JobScheduler;
30 30
31 // Data structure that defines Drive app. See 31 // Data structure that defines Drive app. See
32 // https://chrome.google.com/webstore/category/collection/drive_apps for 32 // https://chrome.google.com/webstore/category/collection/drive_apps for
33 // Drive apps available on the webstore. 33 // Drive apps available on the webstore.
34 struct DriveAppInfo { 34 struct DriveAppInfo {
35 DriveAppInfo(const std::string& app_id, 35 DriveAppInfo(const std::string& app_id,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Map of web store product URL to application name. 139 // Map of web store product URL to application name.
140 std::map<GURL, std::string> url_to_name_map_; 140 std::map<GURL, std::string> url_to_name_map_;
141 141
142 // Map of filename extension to application info. 142 // Map of filename extension to application info.
143 DriveAppFileSelectorMap app_extension_map_; 143 DriveAppFileSelectorMap app_extension_map_;
144 144
145 // Map of MIME type to application info. 145 // Map of MIME type to application info.
146 DriveAppFileSelectorMap app_mimetypes_map_; 146 DriveAppFileSelectorMap app_mimetypes_map_;
147 147
148 bool is_updating_;
149
148 // Note: This should remain the last member so it'll be destroyed and 150 // Note: This should remain the last member so it'll be destroyed and
149 // invalidate the weak pointers before any other members are destroyed. 151 // invalidate the weak pointers before any other members are destroyed.
150 base::WeakPtrFactory<DriveAppRegistry> weak_ptr_factory_; 152 base::WeakPtrFactory<DriveAppRegistry> weak_ptr_factory_;
151 DISALLOW_COPY_AND_ASSIGN(DriveAppRegistry); 153 DISALLOW_COPY_AND_ASSIGN(DriveAppRegistry);
152 }; 154 };
153 155
154 } // namespace drive 156 } // namespace drive
155 157
156 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_APP_REGISTRY_H_ 158 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_APP_REGISTRY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_app_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698