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

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

Issue 301543005: Make unittest_config a dependency of webkit_unit_tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add unittest_config as dependency of webkit_unit_tests Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/web/web_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 visitor->trace(m_file); 95 visitor->trace(m_file);
96 } 96 }
97 97
98 private: 98 private:
99 CreateFileResult() 99 CreateFileResult()
100 : m_failed(false) 100 : m_failed(false)
101 , m_code(0) 101 , m_code(0)
102 { 102 {
103 } 103 }
104 104
105 #if !ENABLE(OILPAN)
105 ~CreateFileResult() 106 ~CreateFileResult()
106 { 107 {
107 } 108 }
109 #endif
110
108 friend class RefCountedWillBeGarbageCollected<CreateFileResult>; 111 friend class RefCountedWillBeGarbageCollected<CreateFileResult>;
109 }; 112 };
110 113
111 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtrWillBeRawPtr<Cr eateFileResult> result, const String& name, const KURL& url, FileSystemType type ) 114 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtrWillBeRawPtr<Cr eateFileResult> result, const String& name, const KURL& url, FileSystemType type )
112 { 115 {
113 return adoptPtr(static_cast<AsyncFileSystemCallbacks*>(new CreateFileHel per(result, name, url, type))); 116 return adoptPtr(static_cast<AsyncFileSystemCallbacks*>(new CreateFileHel per(result, name, url, type)));
114 } 117 }
115 118
116 virtual void didFail(int code) OVERRIDE 119 virtual void didFail(int code) OVERRIDE
117 { 120 {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 240
238 fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter.ge t(), callbacks.release()); 241 fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter.ge t(), callbacks.release());
239 if (errorCode != FileError::OK) { 242 if (errorCode != FileError::OK) {
240 FileError::throwDOMException(exceptionState, errorCode); 243 FileError::throwDOMException(exceptionState, errorCode);
241 return nullptr; 244 return nullptr;
242 } 245 }
243 return fileWriter.release(); 246 return fileWriter.release();
244 } 247 }
245 248
246 } 249 }
OLDNEW
« no previous file with comments | « no previous file | Source/web/web_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698