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

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

Issue 11106007: drive: Rename 'gdata' namespace to 'drive' in chrome/browser/chromeos/drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #if defined(OS_CHROMEOS) 85 #if defined(OS_CHROMEOS)
86 // Send a saved screenshot image file specified by the given screenshot path 86 // Send a saved screenshot image file specified by the given screenshot path
87 // to the requestor. 87 // to the requestor.
88 void SendSavedScreenshot(const std::string& screenshot_path, 88 void SendSavedScreenshot(const std::string& screenshot_path,
89 int request_id, 89 int request_id,
90 const FilePath& file); 90 const FilePath& file);
91 91
92 // The callback for Drive's getting file method. 92 // The callback for Drive's getting file method.
93 void GetSavedScreenshotCallback(const std::string& screenshot_path, 93 void GetSavedScreenshotCallback(const std::string& screenshot_path,
94 int request_id, 94 int request_id,
95 gdata::DriveFileError error, 95 drive::DriveFileError error,
96 const FilePath& file, 96 const FilePath& file,
97 const std::string& unused_mime_type, 97 const std::string& unused_mime_type,
98 gdata::DriveFileType file_type); 98 drive::DriveFileType file_type);
99 99
100 #endif 100 #endif
101 // Sends the screenshot data to the requestor while caching it locally to the 101 // Sends the screenshot data to the requestor while caching it locally to the
102 // class instance, indexed by path. 102 // class instance, indexed by path.
103 void CacheAndSendScreenshot(const std::string& screenshot_path, 103 void CacheAndSendScreenshot(const std::string& screenshot_path,
104 int request_id, 104 int request_id,
105 ScreenshotDataPtr bytes); 105 ScreenshotDataPtr bytes);
106 106
107 // Pointer to the screenshot data for the current screenshot. 107 // Pointer to the screenshot data for the current screenshot.
108 ScreenshotDataPtr current_screenshot_; 108 ScreenshotDataPtr current_screenshot_;
109 109
110 Profile* profile_; 110 Profile* profile_;
111 111
112 // Key: Relative path to the screenshot (including filename) 112 // Key: Relative path to the screenshot (including filename)
113 // Value: Pointer to the screenshot data associated with the path. 113 // Value: Pointer to the screenshot data associated with the path.
114 std::map<std::string, ScreenshotDataPtr> cached_screenshots_; 114 std::map<std::string, ScreenshotDataPtr> cached_screenshots_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(ScreenshotSource); 116 DISALLOW_COPY_AND_ASSIGN(ScreenshotSource);
117 }; 117 };
118 118
119 #endif // CHROME_BROWSER_UI_WEBUI_SCREENSHOT_SOURCE_H_ 119 #endif // CHROME_BROWSER_UI_WEBUI_SCREENSHOT_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.cc ('k') | chrome/browser/ui/webui/screenshot_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698