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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DOMFileSystemBase.h

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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) 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void addPendingCallbacks() { } 80 virtual void addPendingCallbacks() { }
81 virtual void removePendingCallbacks() { } 81 virtual void removePendingCallbacks() { }
82 82
83 // Overridden by subclasses to handle sync vs async error-handling. 83 // Overridden by subclasses to handle sync vs async error-handling.
84 virtual void reportError(ErrorCallback*, FileError*) = 0; 84 virtual void reportError(ErrorCallback*, FileError*) = 0;
85 85
86 const String& name() const { return m_name; } 86 const String& name() const { return m_name; }
87 FileSystemType type() const { return m_type; } 87 FileSystemType type() const { return m_type; }
88 KURL rootURL() const { return m_filesystemRootURL; } 88 KURL rootURL() const { return m_filesystemRootURL; }
89 WebFileSystem* fileSystem() const; 89 WebFileSystem* fileSystem() const;
90 SecurityOrigin* securityOrigin() const; 90 SecurityOrigin* getSecurityOrigin() const;
91 91
92 // The clonable flag is used in the structured clone algorithm to test 92 // The clonable flag is used in the structured clone algorithm to test
93 // whether the FileSystem API object is permitted to be cloned. It defaults 93 // whether the FileSystem API object is permitted to be cloned. It defaults
94 // to false, and must be explicitly set by internal code permit cloning. 94 // to false, and must be explicitly set by internal code permit cloning.
95 void makeClonable() { m_clonable = true; } 95 void makeClonable() { m_clonable = true; }
96 bool clonable() const { return m_clonable; } 96 bool clonable() const { return m_clonable; }
97 97
98 static bool isValidType(FileSystemType); 98 static bool isValidType(FileSystemType);
99 static bool crackFileSystemURL(const KURL&, FileSystemType&, String& filePat h); 99 static bool crackFileSystemURL(const KURL&, FileSystemType&, String& filePat h);
100 static KURL createFileSystemRootURL(const String& origin, FileSystemType); 100 static KURL createFileSystemRootURL(const String& origin, FileSystemType);
(...skipping 29 matching lines...) Expand all
130 FileSystemType m_type; 130 FileSystemType m_type;
131 KURL m_filesystemRootURL; 131 KURL m_filesystemRootURL;
132 bool m_clonable; 132 bool m_clonable;
133 }; 133 };
134 134
135 inline bool operator==(const DOMFileSystemBase& a, const DOMFileSystemBase& b) { return a.name() == b.name() && a.type() == b.type() && a.rootURL() == b.rootURL (); } 135 inline bool operator==(const DOMFileSystemBase& a, const DOMFileSystemBase& b) { return a.name() == b.name() && a.type() == b.type() && a.rootURL() == b.rootURL (); }
136 136
137 } // namespace blink 137 } // namespace blink
138 138
139 #endif // DOMFileSystemBase_h 139 #endif // DOMFileSystemBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698