diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-12 18:38:41 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-12 18:38:41 +0000 |
commit | eb3a892e100a8628a3c38d9b6f02da16fd0cfc65 (patch) | |
tree | 11f0bf526206f9c59ca0cb0b70ff34956fd1f043 /chrome/browser/dom_ui | |
parent | 1464aebf26b67a6ca506fe9d329ca8b1af64e3e4 (diff) | |
download | chromium_src-eb3a892e100a8628a3c38d9b6f02da16fd0cfc65.zip chromium_src-eb3a892e100a8628a3c38d9b6f02da16fd0cfc65.tar.gz chromium_src-eb3a892e100a8628a3c38d9b6f02da16fd0cfc65.tar.bz2 |
Fix some CRLF files.
TBR=brettw
Review URL: http://codereview.chromium.org/113285
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_factory.h | 66 | ||||
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_favicon_source.h | 104 | ||||
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_thumbnail_source.h | 96 |
3 files changed, 133 insertions, 133 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_factory.h b/chrome/browser/dom_ui/dom_ui_factory.h index 77c7c98..8644f64 100644 --- a/chrome/browser/dom_ui/dom_ui_factory.h +++ b/chrome/browser/dom_ui/dom_ui_factory.h @@ -1,33 +1,33 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_
-#define CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_
-
-class DOMUI;
-class GURL;
-class TabContents;
-
-class DOMUIFactory {
- public:
- // Returns true if the given URL's scheme would trigger the DOM UI system.
- // This is a less precise test than UseDONUIForURL, which tells you whether
- // that specific URL matches a known one. This one is faster and can be used
- // to determine security policy.
- static bool HasDOMUIScheme(const GURL& url);
-
- // Returns true if the given URL will use the DOM UI system.
- static bool UseDOMUIForURL(const GURL& url);
-
- // Allocates a new DOMUI object for the given URL, and returns it. If the URL
- // is not a DOM UI URL, then it will return NULL. When non-NULL, ownership of
- // the returned pointer is passed to the caller.
- static DOMUI* CreateDOMUIForURL(TabContents* tab_contents, const GURL& url);
-
- private:
- // Class is for scoping only.
- DOMUIFactory() {};
-};
-
-#endif // CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ +#define CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ + +class DOMUI; +class GURL; +class TabContents; + +class DOMUIFactory { + public: + // Returns true if the given URL's scheme would trigger the DOM UI system. + // This is a less precise test than UseDONUIForURL, which tells you whether + // that specific URL matches a known one. This one is faster and can be used + // to determine security policy. + static bool HasDOMUIScheme(const GURL& url); + + // Returns true if the given URL will use the DOM UI system. + static bool UseDOMUIForURL(const GURL& url); + + // Allocates a new DOMUI object for the given URL, and returns it. If the URL + // is not a DOM UI URL, then it will return NULL. When non-NULL, ownership of + // the returned pointer is passed to the caller. + static DOMUI* CreateDOMUIForURL(TabContents* tab_contents, const GURL& url); + + private: + // Class is for scoping only. + DOMUIFactory() {}; +}; + +#endif // CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ diff --git a/chrome/browser/dom_ui/dom_ui_favicon_source.h b/chrome/browser/dom_ui/dom_ui_favicon_source.h index e946b1e..8dd4190 100644 --- a/chrome/browser/dom_ui/dom_ui_favicon_source.h +++ b/chrome/browser/dom_ui/dom_ui_favicon_source.h @@ -1,52 +1,52 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_
-#define CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/scoped_ptr.h"
-#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
-#include "chrome/browser/history/history.h"
-
-class GURL;
-class Profile;
-
-// FavIconSource is the gateway between network-level chrome:
-// requests for favicons and the history backend that serves these.
-class DOMUIFavIconSource : public ChromeURLDataManager::DataSource {
- public:
- explicit DOMUIFavIconSource(Profile* profile);
-
- // Called when the network layer has requested a resource underneath
- // the path we registered.
- virtual void StartDataRequest(const std::string& path, int request_id);
-
- virtual std::string GetMimeType(const std::string&) const {
- // We need to explicitly return a mime type, otherwise if the user tries to
- // drag the image they get no extension.
- return "image/png";
- }
-
- // Called when favicon data is available from the history backend.
- void OnFavIconDataAvailable(HistoryService::Handle request_handle,
- bool know_favicon,
- scoped_refptr<RefCountedBytes> data,
- bool expired,
- GURL url);
-
- private:
- Profile* profile_;
- CancelableRequestConsumerT<int, 0> cancelable_consumer_;
-
- // Raw PNG representation of the favicon to show when the favicon
- // database doesn't have a favicon for a webpage.
- scoped_refptr<RefCountedBytes> default_favicon_;
-
- DISALLOW_COPY_AND_ASSIGN(DOMUIFavIconSource);
-};
-
-#endif // CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_ +#define CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_ + +#include <string> + +#include "base/basictypes.h" +#include "base/scoped_ptr.h" +#include "chrome/browser/dom_ui/chrome_url_data_manager.h" +#include "chrome/browser/history/history.h" + +class GURL; +class Profile; + +// FavIconSource is the gateway between network-level chrome: +// requests for favicons and the history backend that serves these. +class DOMUIFavIconSource : public ChromeURLDataManager::DataSource { + public: + explicit DOMUIFavIconSource(Profile* profile); + + // Called when the network layer has requested a resource underneath + // the path we registered. + virtual void StartDataRequest(const std::string& path, int request_id); + + virtual std::string GetMimeType(const std::string&) const { + // We need to explicitly return a mime type, otherwise if the user tries to + // drag the image they get no extension. + return "image/png"; + } + + // Called when favicon data is available from the history backend. + void OnFavIconDataAvailable(HistoryService::Handle request_handle, + bool know_favicon, + scoped_refptr<RefCountedBytes> data, + bool expired, + GURL url); + + private: + Profile* profile_; + CancelableRequestConsumerT<int, 0> cancelable_consumer_; + + // Raw PNG representation of the favicon to show when the favicon + // database doesn't have a favicon for a webpage. + scoped_refptr<RefCountedBytes> default_favicon_; + + DISALLOW_COPY_AND_ASSIGN(DOMUIFavIconSource); +}; + +#endif // CHROME_BROWSER_DOM_UI_DOM_UI_FAVICON_SOURCE_H_ diff --git a/chrome/browser/dom_ui/dom_ui_thumbnail_source.h b/chrome/browser/dom_ui/dom_ui_thumbnail_source.h index c4f7063..6b9be7e 100644 --- a/chrome/browser/dom_ui/dom_ui_thumbnail_source.h +++ b/chrome/browser/dom_ui/dom_ui_thumbnail_source.h @@ -1,48 +1,48 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_DOM_UI_DOM_UI_THUMBNAIL_SOURCE_H_
-#define CHROME_BROWSER_DOM_UI_DOM_UI_THUMBNAIL_SOURCE_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/scoped_ptr.h"
-#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
-#include "chrome/browser/history/history.h"
-
-class Profile;
-
-// ThumbnailSource is the gateway between network-level chrome:
-// requests for thumbnails and the history backend that serves these.
-class DOMUIThumbnailSource : public ChromeURLDataManager::DataSource {
- public:
- explicit DOMUIThumbnailSource(Profile* profile);
-
- // Called when the network layer has requested a resource underneath
- // the path we registered.
- virtual void StartDataRequest(const std::string& path, int request_id);
-
- virtual std::string GetMimeType(const std::string&) const {
- // We need to explicitly return a mime type, otherwise if the user tries to
- // drag the image they get no extension.
- return "image/png";
- }
-
- // Called when thumbnail data is available from the history backend.
- void OnThumbnailDataAvailable(HistoryService::Handle request_handle,
- scoped_refptr<RefCountedBytes> data);
-
- private:
- Profile* profile_;
- CancelableRequestConsumerT<int, 0> cancelable_consumer_;
-
- // Raw PNG representation of the thumbnail to show when the thumbnail
- // database doesn't have a thumbnail for a webpage.
- scoped_refptr<RefCountedBytes> default_thumbnail_;
-
- DISALLOW_COPY_AND_ASSIGN(DOMUIThumbnailSource);
-};
-
-#endif // CHROME_BROWSER_DOM_UI_DOM_UI_THUMBNAIL_SOURCE_H_
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_DOM_UI_DOM_UI_THUMBNAIL_SOURCE_H_ +#define CHROME_BROWSER_DOM_UI_DOM_UI_THUMBNAIL_SOURCE_H_ + +#include <string> + +#include "base/basictypes.h" +#include "base/scoped_ptr.h" +#include "chrome/browser/dom_ui/chrome_url_data_manager.h" +#include "chrome/browser/history/history.h" + +class Profile; + +// ThumbnailSource is the gateway between network-level chrome: +// requests for thumbnails and the history backend that serves these. +class DOMUIThumbnailSource : public ChromeURLDataManager::DataSource { + public: + explicit DOMUIThumbnailSource(Profile* profile); + + // Called when the network layer has requested a resource underneath + // the path we registered. + virtual void StartDataRequest(const std::string& path, int request_id); + + virtual std::string GetMimeType(const std::string&) const { + // We need to explicitly return a mime type, otherwise if the user tries to + // drag the image they get no extension. + return "image/png"; + } + + // Called when thumbnail data is available from the history backend. + void OnThumbnailDataAvailable(HistoryService::Handle request_handle, + scoped_refptr<RefCountedBytes> data); + + private: + Profile* profile_; + CancelableRequestConsumerT<int, 0> cancelable_consumer_; + + // Raw PNG representation of the thumbnail to show when the thumbnail + // database doesn't have a thumbnail for a webpage. + scoped_refptr<RefCountedBytes> default_thumbnail_; + + DISALLOW_COPY_AND_ASSIGN(DOMUIThumbnailSource); +}; + +#endif // CHROME_BROWSER_DOM_UI_DOM_UI_THUMBNAIL_SOURCE_H_ |