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

Side by Side Diff: Source/modules/filesystem/DOMWindowFileSystem.cpp

Issue 15127005: Make filesystem objects ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met: 5 * modification, are permitted provided that the following conditions are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 #include "modules/filesystem/FileSystemCallback.h" 36 #include "modules/filesystem/FileSystemCallback.h"
37 #include "modules/filesystem/FileSystemCallbacks.h" 37 #include "modules/filesystem/FileSystemCallbacks.h"
38 #include "modules/filesystem/FileSystemType.h" 38 #include "modules/filesystem/FileSystemType.h"
39 #include "modules/filesystem/LocalFileSystem.h" 39 #include "modules/filesystem/LocalFileSystem.h"
40 #include "weborigin/SecurityOrigin.h" 40 #include "weborigin/SecurityOrigin.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 DOMWindowFileSystem::DOMWindowFileSystem() 44 DOMWindowFileSystem::DOMWindowFileSystem()
45 { 45 {
46 ScriptWrappable::init(this);
46 } 47 }
47 48
48 DOMWindowFileSystem::~DOMWindowFileSystem() 49 DOMWindowFileSystem::~DOMWindowFileSystem()
49 { 50 {
50 } 51 }
51 52
52 void DOMWindowFileSystem::webkitRequestFileSystem(DOMWindow* window, int type, l ong long size, PassRefPtr<FileSystemCallback> successCallback, PassRefPtr<ErrorC allback> errorCallback) 53 void DOMWindowFileSystem::webkitRequestFileSystem(DOMWindow* window, int type, l ong long size, PassRefPtr<FileSystemCallback> successCallback, PassRefPtr<ErrorC allback> errorCallback)
53 { 54 {
54 if (!window->isCurrentlyDisplayedInFrame()) 55 if (!window->isCurrentlyDisplayedInFrame())
55 return; 56 return;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 return; 96 return;
96 } 97 }
97 98
98 LocalFileSystem::localFileSystem().readFileSystem(document, type, ResolveURI Callbacks::create(successCallback, errorCallback, document, type, filePath)); 99 LocalFileSystem::localFileSystem().readFileSystem(document, type, ResolveURI Callbacks::create(successCallback, errorCallback, document, type, filePath));
99 } 100 }
100 101
101 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<i nt>(FileSystemTypeTemporary), enum_mismatch); 102 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<i nt>(FileSystemTypeTemporary), enum_mismatch);
102 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast< int>(FileSystemTypePersistent), enum_mismatch); 103 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast< int>(FileSystemTypePersistent), enum_mismatch);
103 104
104 } // namespace WebCore 105 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698