mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 91424.
- Add tools/gyp_cef to satisfy grit_info.py module load requirement. - Add skia_gpu.patch to work around skia/Angle/WebGL bug. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@263 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -12,11 +12,13 @@
|
||||
#include "base/time.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#include "googleurl/src/gurl.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemEntry.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h"
|
||||
#include "webkit/fileapi/file_system_callback_dispatcher.h"
|
||||
#include "webkit/fileapi/file_system_context.h"
|
||||
@ -37,6 +39,7 @@ using WebKit::WebFileWriterClient;
|
||||
using WebKit::WebFrame;
|
||||
using WebKit::WebSecurityOrigin;
|
||||
using WebKit::WebString;
|
||||
using WebKit::WebURL;
|
||||
using WebKit::WebVector;
|
||||
|
||||
using fileapi::FileSystemCallbackDispatcher;
|
||||
@ -64,11 +67,6 @@ class BrowserFileSystemCallbackDispatcher
|
||||
callbacks_->didSucceed();
|
||||
}
|
||||
|
||||
// Callback to report information for a file.
|
||||
virtual void DidGetLocalPath(const FilePath& local_path) {
|
||||
NOTREACHED();
|
||||
}
|
||||
|
||||
virtual void DidReadMetadata(const base::PlatformFileInfo& info,
|
||||
const FilePath& platform_path) {
|
||||
DCHECK(file_system_);
|
||||
@ -105,8 +103,13 @@ class BrowserFileSystemCallbackDispatcher
|
||||
if (!root.is_valid())
|
||||
callbacks_->didFail(WebKit::WebFileErrorSecurity);
|
||||
else
|
||||
// Temporary hack to ease a 4-phase Chromium/WebKit commit.
|
||||
#ifdef WEBFILESYSTEMCALLBACKS_USE_URL_NOT_STRING
|
||||
callbacks_->didOpenFileSystem(WebString::fromUTF8(name), root);
|
||||
#else
|
||||
callbacks_->didOpenFileSystem(
|
||||
WebString::fromUTF8(name), WebString::fromUTF8(root.spec()));
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual void DidFail(base::PlatformFileError error_code) {
|
||||
@ -170,65 +173,124 @@ void BrowserFileSystem::OpenFileSystem(
|
||||
return;
|
||||
}
|
||||
|
||||
GURL origin_url(frame->securityOrigin().toString());
|
||||
GURL origin_url(frame->document().securityOrigin().toString());
|
||||
GetNewOperation(callbacks)->OpenFileSystem(origin_url, type, create);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::move(const WebString& src_path,
|
||||
const WebString& dest_path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
move(GURL(src_path), GURL(dest_path), callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::copy(const WebString& src_path,
|
||||
const WebString& dest_path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
copy(GURL(src_path), GURL(dest_path), callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::remove(const WebString& path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
remove(GURL(path), callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::removeRecursively(const WebString& path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
removeRecursively(GURL(path), callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::readMetadata(const WebString& path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
readMetadata(GURL(path), callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::createFile(const WebString& path,
|
||||
bool exclusive,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
createFile(GURL(path), exclusive, callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::createDirectory(const WebString& path,
|
||||
bool exclusive,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
createDirectory(GURL(path), exclusive, callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::fileExists(const WebString& path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
fileExists(GURL(path), callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::directoryExists(const WebString& path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
directoryExists(GURL(path), callbacks);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::readDirectory(const WebString& path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
readDirectory(GURL(path), callbacks);
|
||||
}
|
||||
|
||||
WebKit::WebFileWriter* BrowserFileSystem::createFileWriter(
|
||||
const WebString& path, WebKit::WebFileWriterClient* client) {
|
||||
return createFileWriter(GURL(path), client);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::move(
|
||||
const WebString& src_path,
|
||||
const WebString& dest_path, WebFileSystemCallbacks* callbacks) {
|
||||
const WebURL& src_path,
|
||||
const WebURL& dest_path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->Move(GURL(src_path), GURL(dest_path));
|
||||
}
|
||||
|
||||
void BrowserFileSystem::copy(
|
||||
const WebString& src_path, const WebString& dest_path,
|
||||
const WebURL& src_path, const WebURL& dest_path,
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->Copy(GURL(src_path), GURL(dest_path));
|
||||
}
|
||||
|
||||
void BrowserFileSystem::remove(
|
||||
const WebString& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->Remove(GURL(path), false /* recursive */);
|
||||
const WebURL& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->Remove(path, false /* recursive */);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::removeRecursively(
|
||||
const WebString& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->Remove(GURL(path), true /* recursive */);
|
||||
const WebURL& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->Remove(path, true /* recursive */);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::readMetadata(
|
||||
const WebString& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->GetMetadata(GURL(path));
|
||||
const WebURL& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->GetMetadata(path);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::createFile(
|
||||
const WebString& path, bool exclusive, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->CreateFile(GURL(path), exclusive);
|
||||
const WebURL& path, bool exclusive, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->CreateFile(path, exclusive);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::createDirectory(
|
||||
const WebString& path, bool exclusive, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->CreateDirectory(GURL(path), exclusive, false);
|
||||
const WebURL& path, bool exclusive, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->CreateDirectory(path, exclusive, false);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::fileExists(
|
||||
const WebString& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->FileExists(GURL(path));
|
||||
const WebURL& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->FileExists(path);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::directoryExists(
|
||||
const WebString& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->DirectoryExists(GURL(path));
|
||||
const WebURL& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->DirectoryExists(path);
|
||||
}
|
||||
|
||||
void BrowserFileSystem::readDirectory(
|
||||
const WebString& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->ReadDirectory(GURL(path));
|
||||
const WebURL& path, WebFileSystemCallbacks* callbacks) {
|
||||
GetNewOperation(callbacks)->ReadDirectory(path);
|
||||
}
|
||||
|
||||
WebFileWriter* BrowserFileSystem::createFileWriter(
|
||||
const WebString& path, WebFileWriterClient* client) {
|
||||
return new BrowserFileWriter(GURL(path), client, file_system_context_.get());
|
||||
const WebURL& path, WebFileWriterClient* client) {
|
||||
return new BrowserFileWriter(path, client, file_system_context_.get());
|
||||
}
|
||||
|
||||
FileSystemOperation* BrowserFileSystem::GetNewOperation(
|
||||
|
Reference in New Issue
Block a user