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

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 5259003: On windows filepaths need \\?\ prefix to allow extended file path names. Fix ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 visited_link_updater_.reset(new VisitedLinkUpdater()); 233 visited_link_updater_.reset(new VisitedLinkUpdater());
234 234
235 WebCacheManager::GetInstance()->Add(id()); 235 WebCacheManager::GetInstance()->Add(id());
236 ChildProcessSecurityPolicy::GetInstance()->Add(id()); 236 ChildProcessSecurityPolicy::GetInstance()->Add(id());
237 237
238 // Grant most file permissions to this renderer. 238 // Grant most file permissions to this renderer.
239 // PLATFORM_FILE_TEMPORARY, PLATFORM_FILE_HIDDEN and 239 // PLATFORM_FILE_TEMPORARY, PLATFORM_FILE_HIDDEN and
240 // PLATFORM_FILE_DELETE_ON_CLOSE are not granted, because no existing API 240 // PLATFORM_FILE_DELETE_ON_CLOSE are not granted, because no existing API
241 // requests them. 241 // requests them.
242 ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile( 242 ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile(
243 id(), profile->GetPath().Append( 243 id(),
244 fileapi::FileSystemPathManager::kFileSystemDirectory), 244 fileapi::FileSystemPathManager::GetFileSystemCommonRootDirectory(
245 profile->GetPath()),
kinuko (google) 2010/11/25 03:36:47 nit: indent
Kavita Kanetkar 2010/11/25 03:42:05 Done.
245 base::PLATFORM_FILE_OPEN | 246 base::PLATFORM_FILE_OPEN |
246 base::PLATFORM_FILE_CREATE | 247 base::PLATFORM_FILE_CREATE |
247 base::PLATFORM_FILE_OPEN_ALWAYS | 248 base::PLATFORM_FILE_OPEN_ALWAYS |
248 base::PLATFORM_FILE_CREATE_ALWAYS | 249 base::PLATFORM_FILE_CREATE_ALWAYS |
249 base::PLATFORM_FILE_READ | 250 base::PLATFORM_FILE_READ |
250 base::PLATFORM_FILE_WRITE | 251 base::PLATFORM_FILE_WRITE |
251 base::PLATFORM_FILE_EXCLUSIVE_READ | 252 base::PLATFORM_FILE_EXCLUSIVE_READ |
252 base::PLATFORM_FILE_EXCLUSIVE_WRITE | 253 base::PLATFORM_FILE_EXCLUSIVE_WRITE |
253 base::PLATFORM_FILE_ASYNC | 254 base::PLATFORM_FILE_ASYNC |
254 base::PLATFORM_FILE_TRUNCATE | 255 base::PLATFORM_FILE_TRUNCATE |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 IPC::InvalidPlatformFileForTransit(), 1174 IPC::InvalidPlatformFileForTransit(),
1174 std::vector<std::string>(), 1175 std::vector<std::string>(),
1175 std::string(), 1176 std::string(),
1176 false)); 1177 false));
1177 } 1178 }
1178 } 1179 }
1179 1180
1180 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 1181 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
1181 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 1182 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
1182 } 1183 }
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/file_system_operation_unittest.cc » ('j') | webkit/fileapi/file_system_path_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698