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

Side by Side Diff: webkit/fileapi/mock_file_change_observer.cc

Issue 15994002: Move more browser-specific webkit/fileapi code to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « webkit/fileapi/mock_file_change_observer.h ('k') | webkit/fileapi/mock_file_system_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/fileapi/mock_file_change_observer.h"
6
7 namespace fileapi {
8
9 MockFileChangeObserver::MockFileChangeObserver()
10 : create_file_count_(0),
11 create_file_from_count_(0),
12 remove_file_count_(0),
13 modify_file_count_(0),
14 create_directory_count_(0),
15 remove_directory_count_(0) {}
16
17 MockFileChangeObserver::~MockFileChangeObserver() {}
18
19 // static
20 ChangeObserverList MockFileChangeObserver::CreateList(
21 MockFileChangeObserver* observer) {
22 ChangeObserverList::Source source;
23 source.AddObserver(observer, base::MessageLoopProxy::current());
24 return ChangeObserverList(source);
25 }
26
27 void MockFileChangeObserver::OnCreateFile(const FileSystemURL& url) {
28 create_file_count_++;
29 }
30
31 void MockFileChangeObserver::OnCreateFileFrom(const FileSystemURL& url,
32 const FileSystemURL& src) {
33 create_file_from_count_++;
34 }
35
36 void MockFileChangeObserver::OnRemoveFile(const FileSystemURL& url) {
37 remove_file_count_++;
38 }
39
40 void MockFileChangeObserver::OnModifyFile(const FileSystemURL& url) {
41 modify_file_count_++;
42 }
43
44 void MockFileChangeObserver::OnCreateDirectory(const FileSystemURL& url) {
45 create_directory_count_++;
46 }
47
48 void MockFileChangeObserver::OnRemoveDirectory(const FileSystemURL& url) {
49 remove_directory_count_++;
50 }
51
52 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/mock_file_change_observer.h ('k') | webkit/fileapi/mock_file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698