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

Side by Side Diff: chrome/browser/ui/webui/screenshot_source.h

Issue 10873005: Rename GDataDirectoryService to DriveResourceMetadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DriveDirectoryService to DriveResourceMetadata Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_WEBUI_SCREENSHOT_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SCREENSHOT_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_SCREENSHOT_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SCREENSHOT_SOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/linked_ptr.h" 13 #include "base/memory/linked_ptr.h"
14 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 14 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
15 15
16 #if defined(OS_CHROMEOS) 16 #if defined(OS_CHROMEOS)
17 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h" 17 #include "chrome/browser/chromeos/gdata/drive_resource_metadata.h"
achuithb 2012/08/22 09:41:06 What's this used for?
kochi 2012/08/22 10:04:56 This source uses enum DriveFileType.
18 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 18 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
19 #endif 19 #endif
20 20
21 typedef std::vector<unsigned char> ScreenshotData; 21 typedef std::vector<unsigned char> ScreenshotData;
22 typedef linked_ptr<ScreenshotData> ScreenshotDataPtr; 22 typedef linked_ptr<ScreenshotData> ScreenshotDataPtr;
23 23
24 class FilePath; 24 class FilePath;
25 class Profile; 25 class Profile;
26 26
27 // ScreenshotSource is the data source that serves screenshots (saved 27 // ScreenshotSource is the data source that serves screenshots (saved
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Profile* profile_; 81 Profile* profile_;
82 82
83 // Key: Relative path to the screenshot (including filename) 83 // Key: Relative path to the screenshot (including filename)
84 // Value: Pointer to the screenshot data associated with the path. 84 // Value: Pointer to the screenshot data associated with the path.
85 std::map<std::string, ScreenshotDataPtr> cached_screenshots_; 85 std::map<std::string, ScreenshotDataPtr> cached_screenshots_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(ScreenshotSource); 87 DISALLOW_COPY_AND_ASSIGN(ScreenshotSource);
88 }; 88 };
89 89
90 #endif // CHROME_BROWSER_UI_WEBUI_SCREENSHOT_SOURCE_H_ 90 #endif // CHROME_BROWSER_UI_WEBUI_SCREENSHOT_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698