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

Side by Side Diff: webkit/glue/webkitclient_impl.cc

Issue 340050: Add the plumbing and test code for plugins opening files from the sandbox. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « webkit/glue/plugins/webplugin_delegate_impl_win.cc ('k') | webkit/glue/webplugin_delegate.h » ('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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include <math.h> 5 #include <math.h>
6 #include "config.h" 6 #include "config.h"
7 7
8 #include "FrameView.h" 8 #include "FrameView.h"
9 #include "ScrollView.h" 9 #include "ScrollView.h"
10 #include <wtf/Assertions.h> 10 #include <wtf/Assertions.h>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 WebKit::WebString WebKitClientImpl::pathByAppendingComponent( 374 WebKit::WebString WebKitClientImpl::pathByAppendingComponent(
375 const WebKit::WebString& webkit_path, 375 const WebKit::WebString& webkit_path,
376 const WebKit::WebString& webkit_component) { 376 const WebKit::WebString& webkit_component) {
377 FilePath path(webkit_glue::WebStringToFilePathString(webkit_path)); 377 FilePath path(webkit_glue::WebStringToFilePathString(webkit_path));
378 FilePath component(webkit_glue::WebStringToFilePathString(webkit_component)); 378 FilePath component(webkit_glue::WebStringToFilePathString(webkit_component));
379 FilePath combined_path = path.Append(component); 379 FilePath combined_path = path.Append(component);
380 return webkit_glue::FilePathStringToWebString(combined_path.value()); 380 return webkit_glue::FilePathStringToWebString(combined_path.value());
381 } 381 }
382 382
383 bool WebKitClientImpl::makeAllDirectories( 383 bool WebKitClientImpl::makeAllDirectories(const WebKit::WebString& path) {
384 const WebKit::WebString& path) {
385 DCHECK(!sandboxEnabled()); 384 DCHECK(!sandboxEnabled());
386 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); 385 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path);
387 return file_util::CreateDirectory(FilePath(file_path)); 386 return file_util::CreateDirectory(FilePath(file_path));
388 } 387 }
389 388
390 WebKit::WebString WebKitClientImpl::getAbsolutePath( 389 WebKit::WebString WebKitClientImpl::getAbsolutePath(
391 const WebKit::WebString& path) { 390 const WebKit::WebString& path) {
392 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); 391 FilePath file_path(webkit_glue::WebStringToFilePathString(path));
393 file_util::AbsolutePath(&file_path); 392 file_util::AbsolutePath(&file_path);
394 return webkit_glue::FilePathStringToWebString(file_path.value()); 393 return webkit_glue::FilePathStringToWebString(file_path.value());
(...skipping 18 matching lines...) Expand all
413 // methods will be deleted. 412 // methods will be deleted.
414 413
415 WebCore::String WebKitClientImpl::uiResourceProtocol() { 414 WebCore::String WebKitClientImpl::uiResourceProtocol() {
416 return StdStringToString(webkit_glue::GetUIResourceProtocol()); 415 return StdStringToString(webkit_glue::GetUIResourceProtocol());
417 } 416 }
418 417
419 // END(TemporaryGlue) 418 // END(TemporaryGlue)
420 //-------------------------------------------------------------------------- 419 //--------------------------------------------------------------------------
421 420
422 } // namespace webkit_glue 421 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_win.cc ('k') | webkit/glue/webplugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698