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

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

Issue 7745021: Do not show "Translate to ..." item in context menu for chrome:// and FileBrowser pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
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_EXTENSIONS_FILE_MANAGER_UTIL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "chrome/browser/ui/shell_dialogs.h" 10 #include "chrome/browser/ui/shell_dialogs.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 extern const char kFileBrowserDomain[];
16
15 // Helper class for wiring file browser component extension with the rest of UI. 17 // Helper class for wiring file browser component extension with the rest of UI.
16 class FileManagerUtil { 18 class FileManagerUtil {
17 public: 19 public:
18 // Gets base file browser url. 20 // Gets base file browser url.
19 static GURL GetFileBrowserExtensionUrl(); 21 static GURL GetFileBrowserExtensionUrl();
20 static GURL GetFileBrowserUrl(); 22 static GURL GetFileBrowserUrl();
21 static GURL GetMediaPlayerUrl(); 23 static GURL GetMediaPlayerUrl();
22 static GURL GetMediaPlayerPlaylistUrl(); 24 static GURL GetMediaPlayerPlaylistUrl();
23 25
24 // Converts |full_file_path| into external filesystem: url. Returns false 26 // Converts |full_file_path| into external filesystem: url. Returns false
(...skipping 25 matching lines...) Expand all
50 52
51 private: 53 private:
52 FileManagerUtil() {} 54 FileManagerUtil() {}
53 // Helper to convert numeric dialog type to a string. 55 // Helper to convert numeric dialog type to a string.
54 static std::string GetDialogTypeAsString(SelectFileDialog::Type dialog_type); 56 static std::string GetDialogTypeAsString(SelectFileDialog::Type dialog_type);
55 57
56 DISALLOW_COPY_AND_ASSIGN(FileManagerUtil); 58 DISALLOW_COPY_AND_ASSIGN(FileManagerUtil);
57 }; 59 };
58 60
59 #endif // CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_ 61 #endif // CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/file_manager_util.cc » ('j') | chrome/browser/tab_contents/render_view_context_menu.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698