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

Side by Side Diff: components/drive/file_system_interface.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DRIVE_FILE_SYSTEM_INTERFACE_H_ 5 #ifndef COMPONENTS_DRIVE_FILE_SYSTEM_INTERFACE_H_
6 #define COMPONENTS_DRIVE_FILE_SYSTEM_INTERFACE_H_ 6 #define COMPONENTS_DRIVE_FILE_SYSTEM_INTERFACE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 std::string hash; 37 std::string hash;
38 base::FilePath path; 38 base::FilePath path;
39 }; 39 };
40 40
41 // Struct to represent a search result for SearchMetadata(). 41 // Struct to represent a search result for SearchMetadata().
42 struct MetadataSearchResult { 42 struct MetadataSearchResult {
43 MetadataSearchResult(const base::FilePath& path, 43 MetadataSearchResult(const base::FilePath& path,
44 bool is_directory, 44 bool is_directory,
45 const std::string& highlighted_base_name, 45 const std::string& highlighted_base_name,
46 const std::string& md5); 46 const std::string& md5);
47 MetadataSearchResult(const MetadataSearchResult& other);
47 48
48 // The two members are used to create FileEntry object. 49 // The two members are used to create FileEntry object.
49 base::FilePath path; 50 base::FilePath path;
50 bool is_directory; 51 bool is_directory;
51 52
52 // The base name to be displayed in the UI. The parts matched the search 53 // The base name to be displayed in the UI. The parts matched the search
53 // query are highlighted with <b> tag. Meta characters are escaped like &lt; 54 // query are highlighted with <b> tag. Meta characters are escaped like &lt;
54 // 55 //
55 // Why HTML? we could instead provide matched ranges using pairs of 56 // Why HTML? we could instead provide matched ranges using pairs of
56 // integers, but this is fragile as we'll eventually converting strings 57 // integers, but this is fragile as we'll eventually converting strings
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 468
468 // Calculates evictable cache size. 469 // Calculates evictable cache size.
469 // |callback| must not be null. 470 // |callback| must not be null.
470 virtual void CalculateEvictableCacheSize( 471 virtual void CalculateEvictableCacheSize(
471 const EvictableCacheSizeCallback& callback) = 0; 472 const EvictableCacheSizeCallback& callback) = 0;
472 }; 473 };
473 474
474 } // namespace drive 475 } // namespace drive
475 476
476 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_INTERFACE_H_ 477 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698