2015-09-29 12:17:26 +00:00
|
|
|
// Copyright (c) 2015 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2015-09-30 02:56:42 +00:00
|
|
|
#ifndef ATOM_BROWSER_ATOM_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
|
|
|
|
#define ATOM_BROWSER_ATOM_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
|
2015-09-29 12:17:26 +00:00
|
|
|
|
2017-01-18 17:53:54 +00:00
|
|
|
#include <string>
|
|
|
|
|
2015-09-29 12:17:26 +00:00
|
|
|
#include "content/public/browser/resource_dispatcher_host_delegate.h"
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class AtomResourceDispatcherHostDelegate
|
|
|
|
: public content::ResourceDispatcherHostDelegate {
|
|
|
|
public:
|
|
|
|
AtomResourceDispatcherHostDelegate();
|
|
|
|
|
|
|
|
// content::ResourceDispatcherHostDelegate:
|
2017-01-24 03:16:29 +00:00
|
|
|
bool HandleExternalProtocol(const GURL& url,
|
|
|
|
content::ResourceRequestInfo* info) override;
|
2017-01-17 14:23:13 +00:00
|
|
|
bool ShouldInterceptResourceAsStream(net::URLRequest* request,
|
|
|
|
const std::string& mime_type,
|
|
|
|
GURL* origin,
|
|
|
|
std::string* payload) override;
|
2017-02-13 22:41:04 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomResourceDispatcherHostDelegate);
|
2015-09-29 12:17:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
2015-09-30 02:56:42 +00:00
|
|
|
#endif // ATOM_BROWSER_ATOM_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
|