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

Side by Side Diff: chrome/browser/instant/local_ntp_source.h

Issue 12840003: Implement local NTP for fallback. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_INSTANT_LOCAL_NTP_SOURCE_H_
6 #define CHROME_BROWSER_INSTANT_LOCAL_NTP_SOURCE_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/url_data_source.h"
11
12 // Serves HTML and resources for the local omnibox popup i.e.
13 // chrome-search://local-ntp/local-ntp.html
14 class LocalNTPSource : public content::URLDataSource {
15 public:
16 LocalNTPSource();
17
18 // content::URLDataSource overrides.
19 virtual std::string GetSource() OVERRIDE;
20 virtual void StartDataRequest(
21 const std::string& path,
22 bool is_incognito,
23 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
24 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
25 virtual bool ShouldServiceRequest(
26 const net::URLRequest* request) const OVERRIDE;
27
28 private:
29 virtual ~LocalNTPSource();
30
31 DISALLOW_COPY_AND_ASSIGN(LocalNTPSource);
32 };
33
34 #endif // CHROME_BROWSER_INSTANT_LOCAL_NTP_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698