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

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

Issue 1315743003: [part 1] Make classes and structures in modules/ fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
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 24 matching lines...) Expand all
35 #include "modules/filesystem/ErrorCallback.h" 35 #include "modules/filesystem/ErrorCallback.h"
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/LocalFileSystem.h" 38 #include "modules/filesystem/LocalFileSystem.h"
39 #include "platform/FileSystemType.h" 39 #include "platform/FileSystemType.h"
40 #include "platform/weborigin/SchemeRegistry.h" 40 #include "platform/weborigin/SchemeRegistry.h"
41 #include "platform/weborigin/SecurityOrigin.h" 41 #include "platform/weborigin/SecurityOrigin.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 DOMWindowFileSystem::DOMWindowFileSystem()
46 {
47 }
48
49 DOMWindowFileSystem::~DOMWindowFileSystem()
50 {
51 }
52
53 void DOMWindowFileSystem::webkitRequestFileSystem(DOMWindow& windowArg, int type , long long size, FileSystemCallback* successCallback, ErrorCallback* errorCallb ack) 45 void DOMWindowFileSystem::webkitRequestFileSystem(DOMWindow& windowArg, int type , long long size, FileSystemCallback* successCallback, ErrorCallback* errorCallb ack)
54 { 46 {
55 LocalDOMWindow& window = toLocalDOMWindow(windowArg); 47 LocalDOMWindow& window = toLocalDOMWindow(windowArg);
56 if (!window.isCurrentlyDisplayedInFrame()) 48 if (!window.isCurrentlyDisplayedInFrame())
57 return; 49 return;
58 50
59 Document* document = window.document(); 51 Document* document = window.document();
60 if (!document) 52 if (!document)
61 return; 53 return;
62 54
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return; 91 return;
100 } 92 }
101 93
102 LocalFileSystem::from(*document)->resolveURL(document, completedURL, Resolve URICallbacks::create(successCallback, errorCallback, document)); 94 LocalFileSystem::from(*document)->resolveURL(document, completedURL, Resolve URICallbacks::create(successCallback, errorCallback, document));
103 } 95 }
104 96
105 static_assert(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<in t>(FileSystemTypeTemporary), "DOMWindowFileSystem::TEMPORARY should match FileSy stemTypeTemporary"); 97 static_assert(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<in t>(FileSystemTypeTemporary), "DOMWindowFileSystem::TEMPORARY should match FileSy stemTypeTemporary");
106 static_assert(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast<i nt>(FileSystemTypePersistent), "DOMWindowFileSystem::PERSISTENT should match Fil eSystemTypePersistent"); 98 static_assert(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast<i nt>(FileSystemTypePersistent), "DOMWindowFileSystem::PERSISTENT should match Fil eSystemTypePersistent");
107 99
108 } // namespace blink 100 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DOMWindowFileSystem.h ('k') | Source/modules/filesystem/DataTransferItemFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698