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

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

Issue 140533002: drive: Apps.delete returns HTTP_NO_CONTENT on success. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix Created 6 years, 11 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/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DRIVE_DRIVE_APP_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_ 6 #define CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Returns a list of Drive app information for the |file_extension| with 64 // Returns a list of Drive app information for the |file_extension| with
65 // |mime_type|. 65 // |mime_type|.
66 void GetAppsForFile(const base::FilePath::StringType& file_extension, 66 void GetAppsForFile(const base::FilePath::StringType& file_extension,
67 const std::string& mime_type, 67 const std::string& mime_type,
68 std::vector<DriveAppInfo>* apps) const; 68 std::vector<DriveAppInfo>* apps) const;
69 69
70 // Returns the list of all Drive apps installed. 70 // Returns the list of all Drive apps installed.
71 void GetAppList(std::vector<DriveAppInfo>* apps) const; 71 void GetAppList(std::vector<DriveAppInfo>* apps) const;
72 72
73 // Uninstalls the app specified by |app_id|. This method sends requests to the 73 // Uninstalls the app specified by |app_id|. This method sends requests to the
74 // remote server, and returns the result to |callback| asynchronously. 74 // remote server, and returns the result to |callback| asynchronously. When
75 // succeeded, the callback receives HTTP_NO_CONTENT, and error code otherwise.
75 // |callback| must not be null. 76 // |callback| must not be null.
76 void UninstallApp(const std::string& app_id, 77 void UninstallApp(const std::string& app_id,
77 const UninstallCallback& callback); 78 const UninstallCallback& callback);
78 79
79 // Checks whether UinstallApp is supported. The feature is available only for 80 // Checks whether UinstallApp is supported. The feature is available only for
80 // clients with whitelisted API keys (like Official Google Chrome build). 81 // clients with whitelisted API keys (like Official Google Chrome build).
81 static bool IsAppUninstallSupported(); 82 static bool IsAppUninstallSupported();
82 83
83 // Updates this registry by fetching the data from the server. 84 // Updates this registry by fetching the data from the server.
84 void Update(); 85 void Update();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Icons do not have to be sorted by the icon size. If there are no icons in 128 // Icons do not have to be sorted by the icon size. If there are no icons in
128 // the list, returns an empty URL. 129 // the list, returns an empty URL.
129 GURL FindPreferredIcon(const google_apis::InstalledApp::IconList& icons, 130 GURL FindPreferredIcon(const google_apis::InstalledApp::IconList& icons,
130 int preferred_size); 131 int preferred_size);
131 132
132 } // namespace util 133 } // namespace util
133 134
134 } // namespace drive 135 } // namespace drive
135 136
136 #endif // CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_ 137 #endif // CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/drive/drive_app_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698