Index: chrome/browser/ui/webui/screenshot_source.h |
diff --git a/chrome/browser/ui/webui/screenshot_source.h b/chrome/browser/ui/webui/screenshot_source.h |
index 0b4201e9f184b073ceff3b2a60953e0b0fece6cd..c75b30e1bc1d0b2959f6cec1992b8f695f6bf8bd 100644 |
--- a/chrome/browser/ui/webui/screenshot_source.h |
+++ b/chrome/browser/ui/webui/screenshot_source.h |
@@ -32,6 +32,16 @@ class ScreenshotSource : public ChromeURLDataManager::DataSource { |
std::vector<unsigned char>* current_screenshot, |
Profile* profile); |
+#if defined(USE_ASH) |
+ // Queries the browser process to determine if screenshots are disabled. |
+ static bool AreScreenshotsDisabled(); |
+ // Common access for the screenshot directory, parameter is set to the |
+ // requested directory and return value of true is given upon success. |
+ static bool GetScreenshotDirectory(FilePath* directory); |
+#endif |
+ // Get the basefilename for screenshots |
+ static std::string GetScreenshotBaseFilename(); |
+ |
// Called when the network layer has requested a resource underneath |
// the path we registered. |
virtual void StartDataRequest(const std::string& path, |
@@ -45,6 +55,15 @@ class ScreenshotSource : public ChromeURLDataManager::DataSource { |
// Note: This method strips the query string from the given path. |
ScreenshotDataPtr GetCachedScreenshot(const std::string& screenshot_path); |
+ static const char kScreenshotUrlRoot[]; |
+ static const char kScreenshotCurrent[]; |
+ static const char kScreenshotSaved[]; |
+#if defined(OS_CHROMEOS) |
+ static const char kScreenshotPrefix[]; |
+ static const char kScreenshotSuffix[]; |
+#endif |
+ |
+ |
private: |
virtual ~ScreenshotSource(); |