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

Side by Side Diff: components/nacl/browser/test_nacl_browser_delegate.h

Issue 61063003: Keep NaCl plugins used in app background pages alive when active. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move callback impl to nacl_browser_delegate_impl.cc. Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_NACL_COMMON_TEST_NACL_BROWSER_DELEGATE_H_ 5 #ifndef COMPONENTS_NACL_BROWSER_TEST_NACL_BROWSER_DELEGATE_H_
6 #define COMPONENTS_NACL_COMMON_TEST_NACL_BROWSER_DELEGATE_H_ 6 #define COMPONENTS_NACL_BROWSER_TEST_NACL_BROWSER_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "components/nacl/common/nacl_browser_delegate.h" 10 #include "components/nacl/browser/nacl_browser_delegate.h"
11 11
12 // This is a base test implementation of NaClBrowserDelegate which 12 // This is a base test implementation of NaClBrowserDelegate which
13 // does nothing. Individual tests can override the methods further. 13 // does nothing. Individual tests can override the methods further.
14 // To use the test delegate: 14 // To use the test delegate:
15 // 15 //
16 // NaClBrowser::SetDelegate(new RefinedTestNaClBrowserDelegate); 16 // NaClBrowser::SetDelegate(new RefinedTestNaClBrowserDelegate);
17 // 17 //
18 // and 18 // and
19 // 19 //
20 // NaClBrowser::SetDelegate(NULL); // frees the test delegate. 20 // NaClBrowser::SetDelegate(NULL); // frees the test delegate.
(...skipping 15 matching lines...) Expand all
36 virtual bool MapUrlToLocalFilePath(const GURL& url, 36 virtual bool MapUrlToLocalFilePath(const GURL& url,
37 bool use_blocking_api, 37 bool use_blocking_api,
38 base::FilePath* file_path) OVERRIDE; 38 base::FilePath* file_path) OVERRIDE;
39 virtual void SetDebugPatterns(std::string debug_patterns) OVERRIDE; 39 virtual void SetDebugPatterns(std::string debug_patterns) OVERRIDE;
40 virtual bool URLMatchesDebugPatterns(const GURL& manifest_url) OVERRIDE; 40 virtual bool URLMatchesDebugPatterns(const GURL& manifest_url) OVERRIDE;
41 41
42 private: 42 private:
43 DISALLOW_COPY_AND_ASSIGN(TestNaClBrowserDelegate); 43 DISALLOW_COPY_AND_ASSIGN(TestNaClBrowserDelegate);
44 }; 44 };
45 45
46 #endif // COMPONENTS_NACL_COMMON_TEST_NACL_BROWSER_DELEGATE_H_ 46 #endif // COMPONENTS_NACL_BROWSER_TEST_NACL_BROWSER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698