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

Side by Side Diff: chrome/browser/extensions/extension_file_browser_private_api.cc

Issue 7470037: [Refactor] to rename and re-layer the file_util stack layers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebased on the svn tree. Created 9 years, 3 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 | content/browser/file_system/file_system_dispatcher_host.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) 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 #include "chrome/browser/extensions/extension_file_browser_private_api.h" 5 #include "chrome/browser/extensions/extension_file_browser_private_api.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 22 matching lines...) Expand all
33 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
34 #include "content/browser/browser_thread.h" 34 #include "content/browser/browser_thread.h"
35 #include "content/browser/child_process_security_policy.h" 35 #include "content/browser/child_process_security_policy.h"
36 #include "content/browser/renderer_host/render_process_host.h" 36 #include "content/browser/renderer_host/render_process_host.h"
37 #include "content/browser/renderer_host/render_view_host.h" 37 #include "content/browser/renderer_host/render_view_host.h"
38 #include "content/browser/tab_contents/tab_contents.h" 38 #include "content/browser/tab_contents/tab_contents.h"
39 #include "googleurl/src/gurl.h" 39 #include "googleurl/src/gurl.h"
40 #include "grit/generated_resources.h" 40 #include "grit/generated_resources.h"
41 #include "grit/platform_locale_settings.h" 41 #include "grit/platform_locale_settings.h"
42 #include "webkit/fileapi/file_system_context.h" 42 #include "webkit/fileapi/file_system_context.h"
43 #include "webkit/fileapi/file_system_file_util.h"
43 #include "webkit/fileapi/file_system_mount_point_provider.h" 44 #include "webkit/fileapi/file_system_mount_point_provider.h"
44 #include "webkit/fileapi/file_system_operation.h" 45 #include "webkit/fileapi/file_system_operation.h"
45 #include "webkit/fileapi/file_system_operation_context.h" 46 #include "webkit/fileapi/file_system_operation_context.h"
46 #include "webkit/fileapi/file_system_path_manager.h" 47 #include "webkit/fileapi/file_system_path_manager.h"
47 #include "webkit/fileapi/file_system_types.h" 48 #include "webkit/fileapi/file_system_types.h"
48 #include "webkit/fileapi/file_system_util.h" 49 #include "webkit/fileapi/file_system_util.h"
49 #include "webkit/fileapi/file_system_file_util.h"
50 #include "ui/base/l10n/l10n_util.h" 50 #include "ui/base/l10n/l10n_util.h"
51 51
52 #ifdef OS_CHROMEOS 52 #ifdef OS_CHROMEOS
53 #include "chrome/browser/chromeos/cros/cros_library.h" 53 #include "chrome/browser/chromeos/cros/cros_library.h"
54 #endif 54 #endif
55 55
56 // Error messages. 56 // Error messages.
57 const char kFileError[] = "File error %d"; 57 const char kFileError[] = "File error %d";
58 const char kInvalidFileUrl[] = "Invalid file URL"; 58 const char kInvalidFileUrl[] = "Invalid file URL";
59 #ifdef OS_CHROMEOS 59 #ifdef OS_CHROMEOS
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 // TODO(serya): Create a new string in .grd file for this one in M13. 1532 // TODO(serya): Create a new string in .grd file for this one in M13.
1533 dict->SetString("PREVIEW_IMAGE", 1533 dict->SetString("PREVIEW_IMAGE",
1534 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); 1534 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON));
1535 dict->SetString("PLAY_MEDIA", 1535 dict->SetString("PLAY_MEDIA",
1536 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); 1536 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY));
1537 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableArchives)) 1537 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableArchives))
1538 dict->SetString("ENABLE_ARCHIVES", "true"); 1538 dict->SetString("ENABLE_ARCHIVES", "true");
1539 1539
1540 return true; 1540 return true;
1541 } 1541 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/file_system/file_system_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698