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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager_util.h

Issue 9719012: Revert 127317 - Implemented API for tracking ongoing file transfers from file manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
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_EXTENSIONS_FILE_MANAGER_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector>
11 10
12 #include "base/file_path.h" 11 #include "base/file_path.h"
13 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h"
14 #include "chrome/browser/ui/select_file_dialog.h" 12 #include "chrome/browser/ui/select_file_dialog.h"
15 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
16 14
17 class Profile; 15 class Profile;
18 16
19 namespace base {
20 class ListValue;
21 }
22
23 extern const char kFileBrowserDomain[]; 17 extern const char kFileBrowserDomain[];
24 18
25 // File manager helper methods. 19 // File manager helper methods.
26 namespace file_manager_util { 20 namespace file_manager_util {
27 21
28 // Gets base file browser url. 22 // Gets base file browser url.
29 GURL GetFileBrowserExtensionUrl(); 23 GURL GetFileBrowserExtensionUrl();
30 GURL GetFileBrowserUrl(); 24 GURL GetFileBrowserUrl();
31 GURL GetMediaPlayerUrl(); 25 GURL GetMediaPlayerUrl();
32 GURL GetMediaPlayerPlaylistUrl(); 26 GURL GetMediaPlayerPlaylistUrl();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void ViewFile(const FilePath& full_path, bool enqueue); 61 void ViewFile(const FilePath& full_path, bool enqueue);
68 62
69 // Tries to open |file| directly in the browser. Returns false if the browser 63 // Tries to open |file| directly in the browser. Returns false if the browser
70 // can't directly handle this type of file. 64 // can't directly handle this type of file.
71 bool TryViewingFile(const FilePath& file); 65 bool TryViewingFile(const FilePath& file);
72 66
73 void InstallCRX(Profile* profile, const FilePath& full_path); 67 void InstallCRX(Profile* profile, const FilePath& full_path);
74 68
75 bool ShouldBeOpenedWithPdfPlugin(const char* file_extension); 69 bool ShouldBeOpenedWithPdfPlugin(const char* file_extension);
76 70
77 // Converts the vector of progress status to their JSON (Value) form.
78 base::ListValue* ProgressStatusVectorToListValue(
79 Profile* profile, const GURL& origin_url,
80 const std::vector<gdata::GDataOperationRegistry::ProgressStatus>& list);
81
82 } // namespace file_manager_util 71 } // namespace file_manager_util
83 72
84 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 73 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698