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

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

Issue 5357009: Revert 67385 - On windows filepaths need \\?\ prefix to allow extended file p... (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « no previous file | webkit/fileapi/file_system_operation_unittest.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) 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(), 243 id(), profile->GetPath().Append(
244 fileapi::FileSystemPathManager::GetFileSystemCommonRootDirectory( 244 fileapi::FileSystemPathManager::kFileSystemDirectory),
245 profile->GetPath()),
246 base::PLATFORM_FILE_OPEN | 245 base::PLATFORM_FILE_OPEN |
247 base::PLATFORM_FILE_CREATE | 246 base::PLATFORM_FILE_CREATE |
248 base::PLATFORM_FILE_OPEN_ALWAYS | 247 base::PLATFORM_FILE_OPEN_ALWAYS |
249 base::PLATFORM_FILE_CREATE_ALWAYS | 248 base::PLATFORM_FILE_CREATE_ALWAYS |
250 base::PLATFORM_FILE_READ | 249 base::PLATFORM_FILE_READ |
251 base::PLATFORM_FILE_WRITE | 250 base::PLATFORM_FILE_WRITE |
252 base::PLATFORM_FILE_EXCLUSIVE_READ | 251 base::PLATFORM_FILE_EXCLUSIVE_READ |
253 base::PLATFORM_FILE_EXCLUSIVE_WRITE | 252 base::PLATFORM_FILE_EXCLUSIVE_WRITE |
254 base::PLATFORM_FILE_ASYNC | 253 base::PLATFORM_FILE_ASYNC |
255 base::PLATFORM_FILE_TRUNCATE | 254 base::PLATFORM_FILE_TRUNCATE |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 IPC::InvalidPlatformFileForTransit(), 1173 IPC::InvalidPlatformFileForTransit(),
1175 std::vector<std::string>(), 1174 std::vector<std::string>(),
1176 std::string(), 1175 std::string(),
1177 false)); 1176 false));
1178 } 1177 }
1179 } 1178 }
1180 1179
1181 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 1180 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
1182 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 1181 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
1183 } 1182 }
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/file_system_operation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698