OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_FACTORY_H_ | |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_FACTORY_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "url/gurl.h" | |
10 | |
11 namespace content { | |
12 | |
13 class NavigationHandleImpl; | |
14 class NavigatorDelegate; | |
15 | |
16 class NavigationHandleFactory { | |
nasko
2015/09/04 23:36:49
Some class comments will be useful : ). Method one
clamy
2015/09/08 16:27:18
Done.
| |
17 public: | |
18 static scoped_ptr<NavigationHandleImpl> Create(const GURL& url, | |
19 const GURL& validated_url, | |
20 bool is_main_frame, | |
21 NavigatorDelegate* delegate); | |
22 static void SetFactoryForTesting(NavigationHandleFactory* factory); | |
23 | |
24 virtual ~NavigationHandleFactory(); | |
25 | |
26 virtual scoped_ptr<NavigationHandleImpl> CreateHandle( | |
27 const GURL& url, | |
28 const GURL& validated_url, | |
29 bool is_main_frame, | |
30 NavigatorDelegate* delegate) = 0; | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_FACTORY_H_ | |
OLD | NEW |