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

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

Issue 9720020: [COPY] - 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>
10 11
11 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h"
12 #include "chrome/browser/ui/select_file_dialog.h" 14 #include "chrome/browser/ui/select_file_dialog.h"
13 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
14 16
15 class Profile; 17 class Profile;
16 18
19 namespace base {
20 class ListValue;
21 }
22
17 extern const char kFileBrowserDomain[]; 23 extern const char kFileBrowserDomain[];
18 24
19 // File manager helper methods. 25 // File manager helper methods.
20 namespace file_manager_util { 26 namespace file_manager_util {
21 27
22 // Gets base file browser url. 28 // Gets base file browser url.
23 GURL GetFileBrowserExtensionUrl(); 29 GURL GetFileBrowserExtensionUrl();
24 GURL GetFileBrowserUrl(); 30 GURL GetFileBrowserUrl();
25 GURL GetMediaPlayerUrl(); 31 GURL GetMediaPlayerUrl();
26 GURL GetMediaPlayerPlaylistUrl(); 32 GURL GetMediaPlayerPlaylistUrl();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void ViewFile(const FilePath& full_path, bool enqueue); 67 void ViewFile(const FilePath& full_path, bool enqueue);
62 68
63 // Tries to open |file| directly in the browser. Returns false if the browser 69 // Tries to open |file| directly in the browser. Returns false if the browser
64 // can't directly handle this type of file. 70 // can't directly handle this type of file.
65 bool TryViewingFile(const FilePath& file); 71 bool TryViewingFile(const FilePath& file);
66 72
67 void InstallCRX(Profile* profile, const FilePath& full_path); 73 void InstallCRX(Profile* profile, const FilePath& full_path);
68 74
69 bool ShouldBeOpenedWithPdfPlugin(const char* file_extension); 75 bool ShouldBeOpenedWithPdfPlugin(const char* file_extension);
70 76
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
71 } // namespace file_manager_util 82 } // namespace file_manager_util
72 83
73 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 84 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698