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

Side by Side Diff: gin/shell_runner.h

Issue 629153002: Replacing the OVERRIDE with override and FINAL with final in /src/gin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « gin/run_microtasks_observer.h ('k') | gin/wrappable_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 GIN_SHELL_RUNNER_H_ 5 #ifndef GIN_SHELL_RUNNER_H_
6 #define GIN_SHELL_RUNNER_H_ 6 #define GIN_SHELL_RUNNER_H_
7 7
8 #include "gin/runner.h" 8 #include "gin/runner.h"
9 9
10 namespace gin { 10 namespace gin {
(...skipping 26 matching lines...) Expand all
37 class GIN_EXPORT ShellRunner : public Runner { 37 class GIN_EXPORT ShellRunner : public Runner {
38 public: 38 public:
39 ShellRunner(ShellRunnerDelegate* delegate, v8::Isolate* isolate); 39 ShellRunner(ShellRunnerDelegate* delegate, v8::Isolate* isolate);
40 virtual ~ShellRunner(); 40 virtual ~ShellRunner();
41 41
42 // Before running script in this context, you'll need to enter the runner's 42 // Before running script in this context, you'll need to enter the runner's
43 // context by creating an instance of Runner::Scope on the stack. 43 // context by creating an instance of Runner::Scope on the stack.
44 44
45 // Runner overrides: 45 // Runner overrides:
46 virtual void Run(const std::string& source, 46 virtual void Run(const std::string& source,
47 const std::string& resource_name) OVERRIDE; 47 const std::string& resource_name) override;
48 virtual v8::Handle<v8::Value> Call(v8::Handle<v8::Function> function, 48 virtual v8::Handle<v8::Value> Call(v8::Handle<v8::Function> function,
49 v8::Handle<v8::Value> receiver, 49 v8::Handle<v8::Value> receiver,
50 int argc, 50 int argc,
51 v8::Handle<v8::Value> argv[]) OVERRIDE; 51 v8::Handle<v8::Value> argv[]) override;
52 virtual ContextHolder* GetContextHolder() OVERRIDE; 52 virtual ContextHolder* GetContextHolder() override;
53 53
54 private: 54 private:
55 friend class Scope; 55 friend class Scope;
56 56
57 void Run(v8::Handle<v8::Script> script); 57 void Run(v8::Handle<v8::Script> script);
58 58
59 ShellRunnerDelegate* delegate_; 59 ShellRunnerDelegate* delegate_;
60 60
61 scoped_ptr<ContextHolder> context_holder_; 61 scoped_ptr<ContextHolder> context_holder_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(ShellRunner); 63 DISALLOW_COPY_AND_ASSIGN(ShellRunner);
64 }; 64 };
65 65
66 } // namespace gin 66 } // namespace gin
67 67
68 #endif // GIN_SHELL_RUNNER_H_ 68 #endif // GIN_SHELL_RUNNER_H_
OLDNEW
« no previous file with comments | « gin/run_microtasks_observer.h ('k') | gin/wrappable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698