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

Side by Side Diff: chrome/browser/chromeos/extensions/file_handler_util.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
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 #include "chrome/browser/chromeos/extensions/file_handler_util.h" 5 #include "chrome/browser/chromeos/extensions/file_handler_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/i18n/case_conversion.h" 9 #include "base/i18n/case_conversion.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 21 matching lines...) Expand all
32 #include "net/base/escape.h" 32 #include "net/base/escape.h"
33 #include "webkit/fileapi/file_system_context.h" 33 #include "webkit/fileapi/file_system_context.h"
34 #include "webkit/fileapi/file_system_mount_point_provider.h" 34 #include "webkit/fileapi/file_system_mount_point_provider.h"
35 #include "webkit/fileapi/file_system_util.h" 35 #include "webkit/fileapi/file_system_util.h"
36 36
37 using content::BrowserContext; 37 using content::BrowserContext;
38 using content::BrowserThread; 38 using content::BrowserThread;
39 using content::ChildProcessSecurityPolicy; 39 using content::ChildProcessSecurityPolicy;
40 using content::SiteInstance; 40 using content::SiteInstance;
41 using content::WebContents; 41 using content::WebContents;
42 using extensions::Extension;
42 43
43 namespace file_handler_util { 44 namespace file_handler_util {
44 namespace { 45 namespace {
45 46
46 const int kReadWriteFilePermissions = base::PLATFORM_FILE_OPEN | 47 const int kReadWriteFilePermissions = base::PLATFORM_FILE_OPEN |
47 base::PLATFORM_FILE_CREATE | 48 base::PLATFORM_FILE_CREATE |
48 base::PLATFORM_FILE_OPEN_ALWAYS | 49 base::PLATFORM_FILE_OPEN_ALWAYS |
49 base::PLATFORM_FILE_CREATE_ALWAYS | 50 base::PLATFORM_FILE_CREATE_ALWAYS |
50 base::PLATFORM_FILE_OPEN_TRUNCATED | 51 base::PLATFORM_FILE_OPEN_TRUNCATED |
51 base::PLATFORM_FILE_READ | 52 base::PLATFORM_FILE_READ |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 handler_host_permissions_[i].first, 679 handler_host_permissions_[i].first,
679 handler_host_permissions_[i].second); 680 handler_host_permissions_[i].second);
680 } 681 }
681 682
682 // We don't need this anymore. 683 // We don't need this anymore.
683 handler_host_permissions_.clear(); 684 handler_host_permissions_.clear();
684 } 685 }
685 686
686 } // namespace file_handler_util 687 } // namespace file_handler_util
687 688
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_handler_util.h ('k') | chrome/browser/chromeos/extensions/file_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698